database removed outside

This commit is contained in:
2026-06-08 14:48:14 +08:00
parent bf8e72f5b6
commit 75dd78aa33
68 changed files with 679 additions and 1815 deletions
+1 -3
View File
@@ -10,9 +10,7 @@ import os
from werkzeug.security import generate_password_hash
from datetime import datetime
# Store application data in the shared database folder so all backend modules
# use the same SQLite file regardless of their import path.
DB_FILE = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "database", "mxpic_data.db"))
from storage_paths import DB_FILE
def connect_db():
"""Open a SQLite connection with row-style access for application data queries."""