more cid user anatomy testing

This commit is contained in:
Ross
2022-12-05 12:22:26 +00:00
parent 2984f27249
commit a467f24e10
8 changed files with 170 additions and 51 deletions
+9 -1
View File
@@ -199,7 +199,15 @@ class AnatomyQuestion(models.Model):
)
)
def get_unmarked_user_answers(self, exam_pk=None):
def get_unmarked_user_answers(self, exam_pk: int|None = None):
"""_summary_
Args:
exam_pk (_type_, optional): _description_. Defaults to None.
Returns:
set: set of unmarked user strings
"""
if exam_pk is None:
user_answers = set([i.answer_compare for i in self.cid_user_answers.all()])
else: