pull/16/merge
inpos 2017-11-26 18:11:06 +03:00
parent 8e72effba9
commit f635c5c538
1 changed files with 7 additions and 6 deletions

View File

@ -144,12 +144,13 @@ class Movies(Core):
return self.movies["total_results"]
def iter_results(self):
if 'results' in self.movies.keys():
res = self.movies["results"]
else:
log('self.movies: %s' % (repr(self.movies)))
res = []
for i in res:
# if 'results' in self.movies.keys():
# res = self.movies["results"]
# else:
# log('self.movies: %s' % (repr(self.movies)))
# res = []
log('self.movies: %s' % (repr(self.movies)))
for i in self.movies["results"]:
yield i
def get_ordered_matches(self):