allow wikipedia lookup

This commit is contained in:
j 2012-07-04 22:50:37 +00:00
parent 21f21e404e
commit 5556d60ace

View file

@ -33,6 +33,9 @@ def get_movie_id(request):
elif 'criterion' in request.GET:
criterion_id = request.GET['criterion']
movie_id = models.MovieId.objects.get(criterion_id=criterion_id)
elif 'wikipedia' in request.GET:
wikipedia_id = request.GET['wikipedia']
movie_id = models.MovieId.objects.get(wikipedia_id=wikipedia_id)
if movie_id:
movie_id.updateFromImdb()
return movie_id