Add comments
This commit is contained in:
@@ -16,6 +16,7 @@ from .routes import routers, docs
|
||||
|
||||
@asynccontextmanager
|
||||
async def init_db(app: FastAPI):
|
||||
#Create a admin user and password at the beggining
|
||||
with Session(engine) as session:
|
||||
from sqlalchemy import select, insert
|
||||
user = session.execute(select(Users).where(Users.username == settings.FIRST_SUPERUSER)).first()
|
||||
|
||||
Reference in New Issue
Block a user