here we go again - dont print the same thing twice

This commit is contained in:
sanj 2010-07-30 20:40:35 +05:30
parent 46b4c0be4a
commit 70fa282d17

View File

@ -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)