fix db file location
This commit is contained in:
1 parent
096634269b
commit
6f0fd8229c
1 file changed
+1
-1
+1
-1
@@ -4,7 +4,7 @@ import os
|
|||||||
from typing import List, Dict, Any, Optional
|
from typing import List, Dict, Any, Optional
|
||||||
|
|
||||||
# Path to the SQLite database file
|
# Path to the SQLite database file
|
||||||
DB_PATH = os.path.join(os.path.dirname(__file__), "/db_file/fitness.db")
|
DB_PATH = os.path.join(os.path.dirname(__file__), "db_file" ,"fitness.db")
|
||||||
|
|
||||||
# Ensure the database directory exists
|
# Ensure the database directory exists
|
||||||
os.makedirs(os.path.dirname(DB_PATH), exist_ok=True)
|
os.makedirs(os.path.dirname(DB_PATH), exist_ok=True)
|
||||||
|
|||||||
Reference in new issue
Block a user