here we go again - dont print the same thing twice
This commit is contained in:
parent
46b4c0be4a
commit
70fa282d17
|
@ -588,7 +588,7 @@ def article_pdf(request):
|
||||||
# url_list = [url]
|
# url_list = [url]
|
||||||
url_list = []
|
url_list = []
|
||||||
for p in pages:
|
for p in pages:
|
||||||
url = SITE_BASE + "/edit/view_article/%d/?m=%f" % (article.id, m)
|
url = SITE_BASE + "/edit/view_article/%d/?m=%f&p=%d" % (article.id, m, p.id)
|
||||||
url_list.append(url)
|
url_list.append(url)
|
||||||
output_path = MEDIA_ROOT + "/pdf/" + article.name + "_" + str(article.current_revision()) + ".pdf"
|
output_path = MEDIA_ROOT + "/pdf/" + article.name + "_" + str(article.current_revision()) + ".pdf"
|
||||||
pdf_path = print_url_list(url_list, width_mm, height_mm, dpi, output_path)
|
pdf_path = print_url_list(url_list, width_mm, height_mm, dpi, output_path)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user