.
This commit is contained in:
+4
-4
@@ -130,9 +130,9 @@ class ExamBase(models.Model):
|
|||||||
def get_exam_stats(self):
|
def get_exam_stats(self):
|
||||||
text = f"""{self.name}
|
text = f"""{self.name}
|
||||||
-----
|
-----
|
||||||
- Candidate number: {self.stats_candidates}
|
- Candidate number: {int(self.stats_candidates)}
|
||||||
- Max (possible) score: {self.stats_max_possible}
|
- Max (possible) score: {int(self.stats_max_possible)}
|
||||||
- Mean: {self.stats_mean} Median: {self.stats_median} Mode: {self.stats_mode} [Min: {self.stats_min} / Max: {self.stats_max}]
|
- Mean: {self.stats_mean:.2f} Median: {self.stats_median} Mode: {self.stats_mode} [Min: {self.stats_min} / Max: {self.stats_max}]
|
||||||
"""
|
"""
|
||||||
return text
|
return text
|
||||||
|
|
||||||
@@ -335,7 +335,7 @@ class CidUser(models.Model):
|
|||||||
|
|
||||||
exam_text.append(
|
exam_text.append(
|
||||||
f"""{t}
|
f"""{t}
|
||||||
== Score: {user_score}
|
++ Score: {user_score}
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user