From 5556d60aceb17a53e4ab9754ae7d0f2da4404148 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 4 Jul 2012 22:50:37 +0000 Subject: [PATCH] allow wikipedia lookup --- oxdata/lookup/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oxdata/lookup/views.py b/oxdata/lookup/views.py index 5bc8de3..4c72896 100644 --- a/oxdata/lookup/views.py +++ b/oxdata/lookup/views.py @@ -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