From 271fcf088fac9a278ecb3ed2bebc0e88dcf5e218 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 20 Aug 2021 12:32:04 +0100 Subject: [PATCH] . --- rapids/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rapids/models.py b/rapids/models.py index 49abd7a2..ed379bb8 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -349,10 +349,10 @@ class Rapid(models.Model): # Loop through rapidimage associations images = [] - #annotations = [] + annotations = [] feedback_images = [] for i in self.images.all(): - #annotations.append(i.image_annotations) + annotations.append(i.image_annotations) if i.feedback_image == True: if based: feedback_images.append(image_as_base64(i.image)) @@ -370,7 +370,7 @@ class Rapid(models.Model): json = { "images": images, #"feedback_image": [], - "annotations": self.get_image_annotations(), + "annotations": annotations, "type": "rapid", }