article_pdf should not print everything double?

This commit is contained in:
sanj 2010-07-29 01:27:19 +05:30
parent 1df7a5ffc4
commit 1d08767245

View File

@ -586,7 +586,7 @@ def article_pdf(request):
m = article.get_print_multiplier(dpi) m = article.get_print_multiplier(dpi)
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".replace(" ", "") output_path = MEDIA_ROOT + "/pdf/" + article.name + "_" + str(article.current_revision()) + ".pdf".replace(" ", "")
pdf_path = print_url_list(url_list, width_mm, height_mm, output_path) pdf_path = print_url_list(url_list, width_mm, height_mm, output_path)