This commit is contained in:
Ross
2021-05-06 21:26:02 +01:00
parent 9c4844acde
commit 3e5afc4f38
5 changed files with 55 additions and 12 deletions
+11 -11
View File
@@ -187,18 +187,18 @@ class AnatomyQuestion(models.Model):
if i.status != i.MarkOptions.UNMARKED
]
)
correct_answers = set(
[i.answer.get_compare_string() for i in self.answers.all()]
)
half_mark_answers = set(
[i.answer.get_compare_string() for i in self.half_mark_answers.all()]
)
incorrect_answers = set(
[i.answer.get_compare_string() for i in self.incorrect_answers.all()]
)
#correct_answers = set(
# [i.answer.get_compare_string() for i in self.answers.all()]
#)
#half_mark_answers = set(
# [i.answer.get_compare_string() for i in self.half_mark_answers.all()]
#)
#incorrect_answers = set(
# [i.answer.get_compare_string() for i in self.incorrect_answers.all()]
#)
marked_answers = correct_answers | half_mark_answers | incorrect_answers
return marked_answers
#marked_answers = correct_answers | half_mark_answers | incorrect_answers
#return marked_answers
def get_annotations(self):
return self.image_annotations
+4
View File
@@ -477,4 +477,8 @@ td.user-answer-score-2::after {
.long-answer .answer-heading {
font-style: italic;
font-weight: bold;
}
.proposed-answer {
color: darkblue
}