Lower evaluation limit

This commit is contained in:
Christian Cueni 2024-01-10 07:47:24 +01:00
parent 44de8c8013
commit 6272b84b8e
1 changed files with 3 additions and 1 deletions

View File

@ -147,7 +147,9 @@ def update_assignment_completion(
if evaluation_passed is None and ac.evaluation_max_points > 0: if evaluation_passed is None and ac.evaluation_max_points > 0:
if evaluation_points is not None and ac.evaluation_max_points is not None: if evaluation_points is not None and ac.evaluation_max_points is not None:
# if more or equal than 60% of the points are reached, the assignment is passed # if more or equal than 60% of the points are reached, the assignment is passed
ac.evaluation_passed = (evaluation_points / ac.evaluation_max_points) >= 0.6 ac.evaluation_passed = (
evaluation_points / ac.evaluation_max_points
) >= 0.55
else: else:
ac.evaluation_passed = evaluation_passed ac.evaluation_passed = evaluation_passed