added alembic database migrations, json import/export

This commit is contained in:
2025-09-28 15:33:38 -07:00
parent d748b658b4
commit 4c84a074bf

11
main.py
View File

@@ -345,11 +345,12 @@ def scheduled_backup():
def startup_event():
run_migrations()
# Schedule the backup job
scheduler = BackgroundScheduler()
scheduler.add_job(scheduled_backup, 'cron', hour=0)
scheduler.start()
logging.info("Scheduled backup job started.")
# Schedule the backup job - temporarily disabled for debugging
# scheduler = BackgroundScheduler()
# scheduler.add_job(scheduled_backup, 'cron', hour=0)
# scheduler.start()
# logging.info("Scheduled backup job started.")
logging.info("Startup completed - scheduler temporarily disabled")
def test_sqlite_connection(db_path):
"""Test if we can create and write to SQLite database file"""