Merge branch 'main' of git.0x2620.org:0x2620/aab21 into main

This commit is contained in:
imohkay 2021-10-24 20:36:00 +05:30
commit 49a480e1a8

View file

@ -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': [{