Remove backend for do() calls
This commit is contained in:
parent
40a8bc0ce1
commit
628c63f899
33 changed files with 112 additions and 113 deletions
|
|
@ -95,7 +95,7 @@ class Comparoob(ReplApplication):
|
|||
what product to compare.
|
||||
"""
|
||||
products = []
|
||||
for backend, product in self.do('search_products', pattern):
|
||||
for product in self.do('search_products', pattern):
|
||||
double = False
|
||||
for prod in products:
|
||||
if product.name == prod.name:
|
||||
|
|
@ -124,7 +124,7 @@ class Comparoob(ReplApplication):
|
|||
self.change_path([u'prices'])
|
||||
self.start_format()
|
||||
products = []
|
||||
for backend, price in self.do('iter_prices', product):
|
||||
for price in self.do('iter_prices', product):
|
||||
products.append(price)
|
||||
for price in sorted(products, key=self._get_price):
|
||||
self.cached_format(price)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue