From 32ec2f6f6999e2637f8ec7dd830fe04825723145 Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Sun, 24 Oct 2021 19:54:46 +0530 Subject: [PATCH] convert set to list to make JSON serializable --- app/text/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/text/models.py b/app/text/models.py index 9849047..5ea4e8d 100644 --- a/app/text/models.py +++ b/app/text/models.py @@ -93,7 +93,7 @@ class Text(models.Model): return self.get_clips(api, annotations) def get_clips(self, api, annotations): - item_ids = {annot['id'].split('/')[0] for annot in annotations} + item_ids = list({annot['id'].split('/')[0] for annot in annotations}) query = { 'itemsQuery': { 'conditions': [{