feat: ability to reset marketplace
This commit is contained in:
@@ -33,3 +33,9 @@ async def update_marketplaces(marketplace_ids: Union[List[int], None]):
|
||||
updater = StocksUpdater(session)
|
||||
await updater.full_update_all_marketplaces(marketplace_ids)
|
||||
logging.info(f'Marketplaces {marketplace_ids} successfully updated')
|
||||
|
||||
async def reset_marketplace(marketplace_id:int):
|
||||
async with session_factory() as session:
|
||||
updater = StocksUpdater(session)
|
||||
await updater.reset_marketplace(marketplace_id)
|
||||
logging.info(f'Marketplace {marketplace_id} successfully reset')
|
||||
|
||||
Reference in New Issue
Block a user