Gabriele De Rosa 2021-10-03 00:17:10 +02:00
parent 0ac692622d
commit 03e54a8f44
1 changed files with 3 additions and 1 deletions

4
bot.py
View File

@ -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 {