fix get list
This commit is contained in:
parent
cf9999e24a
commit
94783f931f
1 changed files with 1 additions and 1 deletions
2
tasks.py
2
tasks.py
|
@ -20,7 +20,7 @@ def outofcopyright():
|
|||
i.save()
|
||||
|
||||
def update_double_imdb():
|
||||
l = itemlist.models.List.get(name='Double IMDb', user__username='j')
|
||||
l = itemlist.models.List.get('j:Double IMDb')
|
||||
for i in item.models.Item.objects.filter(data__contains='imdbId').exclude(id__in=l.items.all()):
|
||||
if item.models.Item.objects.exclude(id=i.id).filter(sort__imdbId=i.sort.imdbId).exists():
|
||||
l.add(i)
|
||||
|
|
Loading…
Reference in a new issue