.
This commit is contained in:
+3
-3
@@ -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",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user