.
This commit is contained in:
+3
-1
@@ -315,7 +315,9 @@ class Rapid(models.Model):
|
|||||||
|
|
||||||
def get_image_annotations(self):
|
def get_image_annotations(self):
|
||||||
annotations = [i.image_annotations for i in self.images.all() if not i.feedback_image]
|
annotations = [i.image_annotations for i in self.images.all() if not i.feedback_image]
|
||||||
if len(set(annotations).remove("")) < 1:
|
a = set(annotations)
|
||||||
|
a.remove("")
|
||||||
|
if len(a) < 1:
|
||||||
annotations = ""
|
annotations = ""
|
||||||
return json.dumps([i.image_annotations for i in self.images.all() if not i.feedback_image])
|
return json.dumps([i.image_annotations for i in self.images.all() if not i.feedback_image])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user