sync - added week menus

This commit is contained in:
2025-09-28 05:30:37 -07:00
parent 2b70ec4adb
commit 81e474c795
4 changed files with 10 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ import requests
from fastapi import File, UploadFile
# Database setup - Use SQLite for easier setup
DATABASE_URL = "sqlite:///data/meal_planner.db"
DATABASE_URL = f"sqlite:///{os.getenv('DATABASE_PATH', './data')}/meal_planner.db"
# For production, use PostgreSQL: DATABASE_URL = "postgresql://username:password@localhost/meal_planner"
engine = create_engine(DATABASE_URL, connect_args={"check_same_thread": False} if "sqlite" in DATABASE_URL else {})