.
This commit is contained in:
+11
-11
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user