Sync database

This commit is contained in:
2023-05-06 17:27:54 +02:00
parent f58b367eff
commit a923372997
3 changed files with 2 additions and 3 deletions

View File

@@ -1,6 +1,4 @@
__pycache__/
/venv/
*.sqlite
*.sqlite3
*.bak
*.bundle

1
python_flask/items.sqlite Symbolic link
View File

@@ -0,0 +1 @@
/home/hannes/sync/items/items.sqlite

View File

@@ -9,7 +9,7 @@ from .helpers import *
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = f"sqlite:///{app.root_path}/../db.sqlite"
app.config["SQLALCHEMY_DATABASE_URI"] = f"sqlite:///{app.root_path}/../items.sqlite"
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
db = SQLAlchemy(app)