This commit is contained in:
Ross
2021-08-20 09:42:57 +01:00
parent 688083ccc5
commit c4f42b6a75
+3 -1
View File
@@ -315,7 +315,9 @@ class Rapid(models.Model):
def get_image_annotations(self):
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 = ""
return json.dumps([i.image_annotations for i in self.images.all() if not i.feedback_image])