mirror of
https://github.com/lucaspalomodevelop/Party.git
synced 2026-03-20 02:56:10 +00:00
save file directly, instead of moving it there after creating it
This commit is contained in:
parent
1ce3cf210b
commit
a3dcff3a55
6
main.py
6
main.py
@ -65,9 +65,7 @@ def warning_log(warning):
|
||||
if not os.path.exists("./static/img/qr.png"):
|
||||
img = qrcode.make('127.0.0.1:5000')
|
||||
type(img)
|
||||
img.save("qr.png")
|
||||
ort = "./static/img"
|
||||
shutil.move("qr.png", ort)
|
||||
img.save("./static/img/qr.png")
|
||||
else:
|
||||
warning_log("QR-Code ist bereits vorhanden")
|
||||
|
||||
@ -349,4 +347,4 @@ def page_not_found(e):
|
||||
def create_app(config_filename):
|
||||
app.register_error_handler(404, page_not_found)
|
||||
log_server("created app")
|
||||
return app
|
||||
return app
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user