mirror of
https://github.com/sstent/foodplanner.git
synced 2026-05-05 03:03:55 +00:00
added alembic database migrations, json import/export
This commit is contained in:
11
main.py
11
main.py
@@ -345,11 +345,12 @@ def scheduled_backup():
|
|||||||
def startup_event():
|
def startup_event():
|
||||||
run_migrations()
|
run_migrations()
|
||||||
|
|
||||||
# Schedule the backup job
|
# Schedule the backup job - temporarily disabled for debugging
|
||||||
scheduler = BackgroundScheduler()
|
# scheduler = BackgroundScheduler()
|
||||||
scheduler.add_job(scheduled_backup, 'cron', hour=0)
|
# scheduler.add_job(scheduled_backup, 'cron', hour=0)
|
||||||
scheduler.start()
|
# scheduler.start()
|
||||||
logging.info("Scheduled backup job started.")
|
# logging.info("Scheduled backup job started.")
|
||||||
|
logging.info("Startup completed - scheduler temporarily disabled")
|
||||||
|
|
||||||
def test_sqlite_connection(db_path):
|
def test_sqlite_connection(db_path):
|
||||||
"""Test if we can create and write to SQLite database file"""
|
"""Test if we can create and write to SQLite database file"""
|
||||||
|
|||||||
Reference in New Issue
Block a user