v1.0
This commit is contained in:
@@ -28,6 +28,8 @@ class BaseMarketplaceUpdater(ABC):
|
||||
pass
|
||||
|
||||
async def update(self, updates: List[StockUpdate]):
|
||||
if not self.marketplace_api:
|
||||
return
|
||||
product_ids = list(set([update.product_id for update in updates]))
|
||||
stock_data_list = await queries.general.get_stocks_data(
|
||||
session=self.session,
|
||||
@@ -41,6 +43,8 @@ class BaseMarketplaceUpdater(ABC):
|
||||
await self.marketplace_api.update_stocks(marketplace_updates)
|
||||
|
||||
async def update_all(self):
|
||||
if not self.marketplace_api:
|
||||
return
|
||||
stock_data_list = await queries.general.get_stocks_data(
|
||||
session=self.session,
|
||||
marketplace=self.marketplace,
|
||||
|
||||
Reference in New Issue
Block a user