support id in query

This commit is contained in:
j 2011-10-18 22:05:11 +02:00
parent 778639def8
commit 767176fa09

View file

@ -9,6 +9,9 @@ import ox
def find(info, guess=True):
q = Imdb.objects.all()
if 'id' in info:
q = q.filter(imdb=info['id'])
else:
if 'seriesTitle' in info:
info['title'] = info['seriesTitle']
for key in Imdb.keys: