diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2020-08-29 15:10:48 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2020-08-29 15:10:48 +0200 |
commit | 7d81356adeca031173efad5edb8390203e3d588c (patch) | |
tree | d87a43cf3fb080d3f4daa112b11039b9e66e1129 /server/views.py | |
parent | remove delay for js to load (diff) | |
download | scout-subs-7d81356adeca031173efad5edb8390203e3d588c.tar.gz scout-subs-7d81356adeca031173efad5edb8390203e3d588c.zip |
check when page finished loading to download
Diffstat (limited to 'server/views.py')
-rw-r--r-- | server/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/views.py b/server/views.py index cdc1b74..ab22891 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) + pdf = pdfkit.from_string(html, False, options={"window-status":"done"}) result = BytesIO(pdf) result.seek(0) return FileResponse(result, filename=document.user.username+"_"+document.document_type.name+".pdf") |