From c4f42b6a7595a1c45f7a0ee1ca63bce77b4bccec Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 20 Aug 2021 09:42:57 +0100 Subject: [PATCH] . --- rapids/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rapids/models.py b/rapids/models.py index 98af3ff2..cc880c5a 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -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])