From 1f8c99f5788c1b0f90dd922b2e93499cc75183a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20W=C3=B6rister?= Date: Thu, 5 Feb 2026 09:48:29 +0100 Subject: [PATCH] set next_grading_allowed_at when exercise_progress record is created for first exercise --- app/api/v1/exercise.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/v1/exercise.py b/app/api/v1/exercise.py index 6ed11e9..1db5fe2 100644 --- a/app/api/v1/exercise.py +++ b/app/api/v1/exercise.py @@ -85,7 +85,8 @@ async def get_current_exercise(tan_code: str, session: AsyncSession = Depends(ge tan_code=tan_code, exercise_id=first_exercise.id, start_time=now, - skipped=False + skipped=False, + next_grading_allowed_at=now, ) session.add(ep)