mirror of
https://github.com/derogab/ITAvsCOVIDbot
synced 2025-04-05 13:31:02 +02:00
Bug fix
More info: https://github.com/wkhtmltopdf/wkhtmltopdf/issues/4460#issuecomment-661345113
This commit is contained in:
parent
0ac692622d
commit
03e54a8f44
4
bot.py
4
bot.py
@ -120,8 +120,10 @@ def generate(df, target, template):
|
|||||||
wf.write("\n" + line)
|
wf.write("\n" + line)
|
||||||
# Generate plot filename
|
# Generate plot filename
|
||||||
results_filename = 'results_' + sf + '.png'
|
results_filename = 'results_' + sf + '.png'
|
||||||
|
# Set imgkit options
|
||||||
|
options = {'enable-local-file-access': None}
|
||||||
# Create results image/png
|
# Create results image/png
|
||||||
imgkit.from_file('out/' + webpage_filename, 'out/' + results_filename)
|
imgkit.from_file('out/' + webpage_filename, 'out/' + results_filename, options=options)
|
||||||
|
|
||||||
# Return out data
|
# Return out data
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user