corrected path for upgrade

main
Domeniko Gentner 4 years ago
parent 58f21ca06e
commit 72f971162d
  1. 5
      labertasche/blueprints/bp_upgrades/db_v2.py

@ -9,7 +9,7 @@
from . import bp_dbupgrades from . import bp_dbupgrades
from flask_cors import cross_origin from flask_cors import cross_origin
from flask_login import login_required from flask_login import login_required
from flask import render_template, jsonify, make_response, redirect, url_for from flask import render_template, jsonify, make_response, redirect, url_for, current_app
from pathlib import Path from pathlib import Path
from labertasche.database import labertasche_db as db from labertasche.database import labertasche_db as db
from labertasche.models import TProjects, TComments, TLocation, TEmail, TVersion from labertasche.models import TProjects, TComments, TLocation, TEmail, TVersion
@ -22,7 +22,8 @@ from datetime import datetime
def get_backup_folder() -> Path: def get_backup_folder() -> Path:
path = Path('.').absolute() / "backup" / "v1" path = Path(current_app.root_path)
path = path / "backup" / "v1"
return path return path

Loading…
Cancel
Save