aboutsummaryrefslogtreecommitdiffstats
path: root/server/views.py
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-08-29 15:33:59 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-08-29 15:33:59 +0200
commitbbfd859d082ab23729d9ad3841c7df260b8e72d8 (patch)
tree3289e7df619f836fad4bf036df0203cabcd77ad9 /server/views.py
parentcheck when page finished loading to download (diff)
downloadscout-subs-bbfd859d082ab23729d9ad3841c7df260b8e72d8.tar.gz
scout-subs-bbfd859d082ab23729d9ad3841c7df260b8e72d8.zip
better download html
Diffstat (limited to '')
-rw-r--r--server/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/views.py b/server/views.py
index ab22891..cdc1b74 100644
--- a/server/views.py
+++ b/server/views.py
@@ -221,7 +221,7 @@ def ulist(request):
# render context
html = template.render(context)
# render pdf using wkhtmltopdf
- pdf = pdfkit.from_string(html, False, options={"window-status":"done"})
+ pdf = pdfkit.from_string(html, False)
result = BytesIO(pdf)
result.seek(0)
return FileResponse(result, filename=document.user.username+"_"+document.document_type.name+".pdf")