Skip to content

Commit 7dbc1c6

Browse files
authored
correctly set next_grading_allowed_at field (#27)
1 parent 98d6cbe commit 7dbc1c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/api/v1/exercise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ async def get_current_exercise(tan_code: str, session: AsyncSession = Depends(ge
110110
return ExerciseWithUnlockTimestamps(**exercise.to_dict(),
111111
skip_unlock_time=(
112112
progress.start_time + timedelta(minutes=exercise.skip_delay)),
113-
next_grading_allowed_at=progress.next_grading_allowed_at)
113+
next_grading_allowed_at=next_grading)
114114

115115

116116
@router.post("/current/skip", status_code=status.HTTP_204_NO_CONTENT)

0 commit comments

Comments
 (0)