X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/b99b619fb5c4504bc8a21e5c9f92a72d84638836..34511b8161f4fa25634a9659137a1143a1511c21:/wtem/models.py?ds=sidebyside diff --git a/wtem/models.py b/wtem/models.py index d24430d..4c3d0ee 100644 --- a/wtem/models.py +++ b/wtem/models.py @@ -84,7 +84,7 @@ class Submission(models.Model): if exercise_checked_manually(exercise): marks_by_examiner = self.get_exercise_marks_by_examiner(exercise_id) if len(marks_by_examiner): - return max(map(int, marks_by_examiner.values())) + return sum(map(int, marks_by_examiner.values())) / float(len(marks_by_examiner)) else: return None else: