This commit is contained in:
Ross
2021-08-20 12:32:04 +01:00
parent eb2efa8f44
commit 271fcf088f
+3 -3
View File
@@ -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",
}