fix get list

This commit is contained in:
j 2014-02-14 08:06:07 +00:00
parent cf9999e24a
commit 94783f931f

View file

@ -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)