From 517cadf7307d0b8a3e162792a21df6175b1db3ef Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 2 Nov 2011 00:02:20 +0100 Subject: [PATCH] get_imdb --- oxdata/lookup/cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: