This commit is contained in:
Ross
2021-12-31 13:50:43 +00:00
parent 04f6b9c168
commit be4da46036
2 changed files with 15 additions and 7 deletions
+7 -7
View File
@@ -129,11 +129,11 @@ class ExamBase(models.Model):
def get_exam_stats(self):
text = f"""{self.name}
-----
- Candidate number: {self.stats_candidates}
- Max (possible) score: {self.stats_max_possible}
- Mean: {self.stats_mean} Median: {self.stats_median} Mode: {self.stats_mode} [Min: {self.stats_min} / Max: {self.stats_max}]
"""
-----
- Candidate number: {self.stats_candidates}
- Max (possible) score: {self.stats_max_possible}
- Mean: {self.stats_mean} Median: {self.stats_median} Mode: {self.stats_mode} [Min: {self.stats_min} / Max: {self.stats_max}]
"""
return text
def __str__(self):
@@ -335,8 +335,8 @@ class CidUser(models.Model):
exam_text.append(
f"""{t}
== Score: {user_score}
"""
== Score: {user_score}
"""
)
msg = "\n\n".join(exam_text)
+8
View File
@@ -8,3 +8,11 @@
</div>
{% endblock %}
{% block css %}
<style type="text/css">
pre {
color: gray;
}
</style>
{% endblock css %}