From cbcd505c05fdf6bb4325ef6ae51fa5a79062c271 Mon Sep 17 00:00:00 2001 From: Markku Riekkinen Date: Thu, 9 Feb 2023 18:39:30 +0200 Subject: [PATCH] Add validation for the exercise grading_mode setting The validation rejected courses that used the grading_mode setting since the validation code did not include those settings at all. --- access/course.py | 1 + 1 file changed, 1 insertion(+) diff --git a/access/course.py b/access/course.py index f75da1b..f446a87 100644 --- a/access/course.py +++ b/access/course.py @@ -218,6 +218,7 @@ class Exercise(Item): points_to_pass: NotRequired[NonNegativeInt] reveal_submission_feedback: NotRequired[RevealRuleOptions] reveal_model_solutions: NotRequired[RevealRuleOptions] + grading_mode: NotRequired[Literal["best", "last"]] _config_obj: Optional[ExerciseConfig] = PrivateAttr(default=None) def config_file_info(self, course_dir: str, grader_config_dir: str) -> Optional[Tuple[str, str]]: