return inside generator
parent
e02adcf845
commit
c941a77d16
|
@ -145,10 +145,11 @@ class Movies(Core):
|
||||||
|
|
||||||
def iter_results(self):
|
def iter_results(self):
|
||||||
if 'results' in self.movies.keys():
|
if 'results' in self.movies.keys():
|
||||||
|
res = self.movies["results"]
|
||||||
|
else:
|
||||||
|
res = []
|
||||||
for i in self.movies["results"]:
|
for i in self.movies["results"]:
|
||||||
yield i
|
yield i
|
||||||
else:
|
|
||||||
return []
|
|
||||||
|
|
||||||
def get_ordered_matches(self):
|
def get_ordered_matches(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue