corrected path for upgrade

This commit is contained in:
Domeniko Gentner 2021-01-15 20:05:13 +01:00
parent 72f971162d
commit 7125cc0719

View File

@ -55,7 +55,7 @@ def upgrade_db_to_v2_backup():
# Create path for backup
try:
if not path.exists():
path.mkdir(mode=755, exist_ok=True, parents=True)
path.mkdir(mode=777, exist_ok=True, parents=True)
except OSError as e:
return make_response(jsonify(status='exception', msg=str(e)), 400)