Undefined variable fix
This commit is contained in:
@@ -72,6 +72,8 @@ class TheMovieDb(MovieProvider):
|
||||
# Sort on returned score first when year is in q
|
||||
if re.search('\s\d{4}', q):
|
||||
movies = sorted(raw, key = lambda k: k['score'], reverse = True)
|
||||
else:
|
||||
movies = raw
|
||||
|
||||
for movie in movies:
|
||||
results.append(self.parseMovie(movie))
|
||||
|
||||
Reference in New Issue
Block a user