mirror of
https://github.com/alvierahman90/uploadr.git
synced 2025-01-12 10:14:21 +00:00
Fix bug meaning qrcodes searched for in current_dir/qrcodes only
This commit is contained in:
parent
a5af177bd2
commit
24d6babc73
@ -56,7 +56,7 @@ def qrcodes(filename):
|
||||
, request.args.get('version')
|
||||
)
|
||||
image = qrcode.make(link)
|
||||
with open('qrcodes/' + filename+ '.png', mode = 'bw+') as file:
|
||||
with open(config.qrcodes + '/' + filename+ '.png', mode = 'bw+') as file:
|
||||
image.save(file)
|
||||
return send_from_directory(config.qrcodes, filename + '.png', as_attachment=True)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user