This commit is contained in:
user committed 2025-07-11 06:46:33 +03:00
1 parent 373c832e71
commit 1b0dfdafbc
48 files changed
+3114 -396

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ from datetime import datetime
from uuid import uuid4
from app.core.config import get_settings
from app.core.database import get_async_session
from app.core.database import db_manager
from app.core.models.user import User
from app.core.security import hash_password
@@ -42,7 +42,7 @@ async def create_admin_user():
last_name = input("Enter last name (optional): ").strip() or None
try:
async with get_async_session() as session:
async with db_manager.get_session() as session:
# Check if user already exists
from sqlalchemy import select