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)
|
||||
# Generate plot filename
|
||||
results_filename = 'results_' + sf + '.png'
|
||||
# Set imgkit options
|
||||
options = {'enable-local-file-access': None}
|
||||
# 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 {
|
||||
|
|
Loading…
Reference in New Issue