convert set to list to make JSON serializable
This commit is contained in:
parent
e318c1d42b
commit
32ec2f6f69
1 changed files with 1 additions and 1 deletions
|
@ -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': [{
|
||||
|
|
Loading…
Reference in a new issue