Fixed entire calendar layout + chat layout + chat history

This commit is contained in:
c-d-p
2025-04-21 15:36:59 +02:00
parent 9e8e179a94
commit c158ff4e0e
37 changed files with 1050 additions and 285 deletions

View File

@@ -17,6 +17,10 @@ def get_engine():
raise ValueError("DB_URL is not set in Settings.")
print(f"Connecting to database at {settings.DB_URL}")
_engine = create_engine(settings.DB_URL)
try:
_engine.connect()
except Exception as e:
raise Exception("Database connection failed. Is the database server running?")
Base.metadata.create_all(_engine) # Create tables here
return _engine