Fixed database code everywhere, dashboard is still happy everywhere now.
This commit is contained in:
@@ -4,6 +4,7 @@ from fastapi.staticfiles import StaticFiles
|
||||
from fastapi.templating import Jinja2Templates
|
||||
from pathlib import Path
|
||||
|
||||
from .database import init_db
|
||||
from .routers import public, profile, messages, send
|
||||
|
||||
BASE_DIR = Path(__file__).parent.resolve()
|
||||
@@ -40,6 +41,9 @@ from .routers.message_detail import router as message_detail_router
|
||||
from .routers.messages import html_router
|
||||
from .routers.objects import router as objects_router
|
||||
|
||||
# initialize database
|
||||
init_db()
|
||||
|
||||
# Include routers
|
||||
app.include_router(public.router)
|
||||
app.include_router(profile.router)
|
||||
|
||||
Reference in New Issue
Block a user