FIx exam reviewing

This commit is contained in:
Ross
2023-02-27 15:04:10 +00:00
parent fcf22fdd73
commit 2b6ac79439
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -265,7 +265,7 @@ class AnatomyQuestion(models.Model):
]
)
def get_question_json(self, based: bool=True, answers: bool=True):
def get_question_json(self, based: bool=True, answers: bool=True, feedback=False):
"""Returns a json representation of the question"""
images = []
@@ -291,6 +291,9 @@ class AnatomyQuestion(models.Model):
if answers:
json["answers"] = list(self.get_correct_unstripped_answers())
#if feedback:
# json["feedback"] = self.feedback
return json
def get_image_url(self):
+1 -1
View File
@@ -513,7 +513,7 @@ class Rapid(models.Model):
}
if annotations:
json["annotations"] = self.annotations
json["annotations"] = annotations
if history:
json["history"] = self.history