aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--server/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/views.py b/server/views.py
index 26d5b2a..b5e0493 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={'javascript-delay':'1000'})
result = BytesIO(pdf)
result.seek(0)
@@ -602,7 +602,7 @@ def doclist(request):
context = {'doc': doc, 'vac': vac_file,
'health': health_file, 'sign_doc_file': sign_doc_file}
html = template.render(context)
- pdf = pdfkit.from_string(html, False)
+ pdf = pdfkit.from_string(html, False, options={'javascript-delay':'1000'})
result = BytesIO(pdf)
result.seek(0)