updated using CODEX, refresh in canvas layout and functionalities
This commit is contained in:
+2
-2
@@ -4,7 +4,7 @@ import os
|
||||
from werkzeug.security import generate_password_hash
|
||||
|
||||
# Save the database in the backend folder
|
||||
DB_FILE = os.path.join(os.path.dirname(__file__), "..\\database\\mxpic_data.db")
|
||||
DB_FILE = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "database", "mxpic_data.db"))
|
||||
|
||||
def init_db():
|
||||
conn = sqlite3.connect(DB_FILE)
|
||||
@@ -39,4 +39,4 @@ def get_user(username):
|
||||
|
||||
if __name__ == "__main__":
|
||||
init_db()
|
||||
print("Database initialized successfully.")
|
||||
print("Database initialized successfully.")
|
||||
|
||||
Reference in New Issue
Block a user