1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Fix updateFinalExperimentMark

This commit is contained in:
Mo 2022-04-10 21:01:56 +02:00
parent 6c84829c4d
commit 7a1c0e9d55

View file

@ -535,6 +535,7 @@ class ExperimentMark(db.Model):
return ExperimentMark(part_student=part_student, group_experiment=group_experiment)
def updateFinalExperimentMark(self):
if None not in (self.oral_mark, self.protocol_mark):
semesterExperiment = self.group_experiment.semester_experiment
self.final_experiment_mark = roundHalfUpToInt(
semesterExperiment.oral_weighting * self.oral_mark