From 2b6ac79439a38470188cc62f91d95d5ba2450100 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 27 Feb 2023 15:04:10 +0000 Subject: [PATCH] FIx exam reviewing --- anatomy/models.py | 5 ++++- rapids/models.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/anatomy/models.py b/anatomy/models.py index a2b6af06..5d192ab7 100644 --- a/anatomy/models.py +++ b/anatomy/models.py @@ -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): diff --git a/rapids/models.py b/rapids/models.py index 1db86d4e..ae5e7982 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -513,7 +513,7 @@ class Rapid(models.Model): } if annotations: - json["annotations"] = self.annotations + json["annotations"] = annotations if history: json["history"] = self.history