FIx exam reviewing
This commit is contained in:
+4
-1
@@ -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
@@ -513,7 +513,7 @@ class Rapid(models.Model):
|
||||
}
|
||||
|
||||
if annotations:
|
||||
json["annotations"] = self.annotations
|
||||
json["annotations"] = annotations
|
||||
|
||||
if history:
|
||||
json["history"] = self.history
|
||||
|
||||
Reference in New Issue
Block a user