1
1
mirror of https://github.com/derogab/ITAvsCOVIDbot synced 2024-12-26 15:32:34 +01:00
Gabriele De Rosa 2021-10-03 00:17:10 +02:00
parent 0ac692622d
commit 03e54a8f44

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 {