Fix the things i broke using logger.info

This commit is contained in:
2026-05-23 20:35:12 +02:00
parent 07669fc1fc
commit 9160b312c7
4 changed files with 3 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ aa_router = APIRouter(prefix="/aa", tags=["AccessAuth"])
@aa_router.post("/", response_model=AccessAuthorizationResponse)
def add_accessauth(*, db: Session = Depends(get_session), aa: AccessAuthorizationCreate, admin: bool = Depends(auth_is_admin)):
logger.info("Creating accessauth with data: ", aa)
logger.info(f"Creating accessauth with data: {aa}")
timetables = [Timetable.model_validate(t) for t in aa.timetables]
db_aa = AccessAuthorizationDB(
name=aa.name,