diff --git a/python_flask/.gitignore b/python_flask/.gitignore index 2341ea3..97f3150 100644 --- a/python_flask/.gitignore +++ b/python_flask/.gitignore @@ -1,6 +1,4 @@ __pycache__/ /venv/ -*.sqlite -*.sqlite3 *.bak *.bundle diff --git a/python_flask/items.sqlite b/python_flask/items.sqlite new file mode 120000 index 0000000..af8c00a --- /dev/null +++ b/python_flask/items.sqlite @@ -0,0 +1 @@ +/home/hannes/sync/items/items.sqlite \ No newline at end of file diff --git a/python_flask/packager/__init__.py b/python_flask/packager/__init__.py index a1bc76c..f3e2ff9 100644 --- a/python_flask/packager/__init__.py +++ b/python_flask/packager/__init__.py @@ -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)