From 269abdba7f80c68ea07bafcfa11d2407f963df2b Mon Sep 17 00:00:00 2001 From: sstent Date: Sun, 28 Sep 2025 10:37:15 -0700 Subject: [PATCH] added alembic database migrations, json import/export --- main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.py b/main.py index 5abacb9..cef3af7 100644 --- a/main.py +++ b/main.py @@ -1,8 +1,6 @@ print("DEBUG: main.py started") -print("DEBUG: main.py started") - # Meal Planner FastAPI Application # Run with: uvicorn main:app --reload @@ -326,6 +324,7 @@ def scheduled_backup(): @app.on_event("startup") def startup_event(): + logging.info("FastAPI application startup event triggered.") run_migrations() # Schedule the backup job scheduler = BackgroundScheduler() @@ -416,7 +415,6 @@ async def root(request: Request): # Admin Section @app.get("/admin", response_class=HTMLResponse) async def admin_page(request: Request): - print("DEBUG: /admin route accessed") return templates.TemplateResponse("admin/index.html", {"request": request}) @app.get("/admin/imports", response_class=HTMLResponse)