Merge pull request 'convert set to list to make JSON serializable' (#22) from fix-text-cache into main

Reviewed-on: 0x2620/aab21#22
This commit is contained in:
sanj 2021-10-24 14:26:17 +00:00
commit f246c22a01

View file

@ -93,7 +93,7 @@ class Text(models.Model):
return self.get_clips(api, annotations) return self.get_clips(api, annotations)
def get_clips(self, 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 = { query = {
'itemsQuery': { 'itemsQuery': {
'conditions': [{ 'conditions': [{