Phase 3.1: Enhanced Chore Logging and Reporting System

This commit is contained in:
2026-02-05 12:33:51 +11:00
commit e3cae7bfbb
178 changed files with 30105 additions and 0 deletions

24
backend/make_lou_admin.py Normal file
View File

@@ -0,0 +1,24 @@
"""Quick script to make Lou an admin."""
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent))
from app.core.database import SessionLocal
from app.models.user import User
def make_lou_admin():
db = SessionLocal()
try:
lou = db.query(User).filter(User.username == "lou").first()
if lou:
lou.is_admin = True
db.commit()
print(f"{lou.full_name} is now an admin!")
else:
print("❌ Lou not found in database")
finally:
db.close()
if __name__ == "__main__":
make_lou_admin()