diff --git a/oxdata/lookup/cache.py b/oxdata/lookup/cache.py index 6f053ba..2fd86b1 100644 --- a/oxdata/lookup/cache.py +++ b/oxdata/lookup/cache.py @@ -33,11 +33,11 @@ def getIds(): addPoster(m, poster, 'impawards.com', m.imdb_id) for id in ox.web.criterion.getIds(): - if id in (626, 835): + if id in ('626', '835'): continue if models.MovieId.objects.all().filter(criterion_id=id).count() == 0: print 'criterion', id - data = ox.web.criterion.getData(id, imdb=True) + data = ox.web.criterion.getData(id, get_imdb=True) if data and 'imdbId' in data: m = models.getMovieIdByImdbId(data['imdbId']) if not m.criterion_id: