This commit is contained in:
@@ -54,7 +54,7 @@ def init_db():
|
|||||||
except sqlite3.OperationalError as e:
|
except sqlite3.OperationalError as e:
|
||||||
print(f"Error initializing database: {e}")
|
print(f"Error initializing database: {e}")
|
||||||
# Fallback to using a local database file if the mounted volume has permission issues
|
# Fallback to using a local database file if the mounted volume has permission issues
|
||||||
db_path = 'db/cache.db'
|
db_path = 'cache.db'
|
||||||
print(f"Falling back to local database file: {db_path}")
|
print(f"Falling back to local database file: {db_path}")
|
||||||
conn = sqlite3.connect(db_path)
|
conn = sqlite3.connect(db_path)
|
||||||
cursor = conn.cursor()
|
cursor = conn.cursor()
|
||||||
|
|||||||
Reference in New Issue
Block a user