Fix bug when fetching corepos handler

This commit is contained in:
Lance Edgar 2023-09-19 06:49:30 -05:00
parent 9a53b58972
commit 6e1d2544c8
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ class VendorCatalogHandler(base.VendorCatalogHandler):
if not vendor_id: if not vendor_id:
raise ValueError("Batch vendor does not have valid CORE-POS ID") raise ValueError("Batch vendor does not have valid CORE-POS ID")
self.api = self.get_corepos_handler.make_webapi() self.api = self.app.get_corepos_handler.make_webapi()
self.update_corepos(batch, rows, vendor_id, progress=progress, self.update_corepos(batch, rows, vendor_id, progress=progress,
# update_product_costs=kwargs.get('update_product_costs', False), # update_product_costs=kwargs.get('update_product_costs', False),
) )

View file

@ -99,7 +99,7 @@ class FromCOREPOSAPI(importing.Importer):
self.establish_api() self.establish_api()
def establish_api(self): def establish_api(self):
self.api = self.get_corepos_handler().make_webapi() self.api = self.app.get_corepos_handler().make_webapi()
def should_ignore_new_members(self): def should_ignore_new_members(self):
if hasattr(self, 'ignore_new_members'): if hasattr(self, 'ignore_new_members'):