This commit is contained in:
2024-07-01 06:01:50 +03:00
parent a6f7a9d65f
commit 386ee7e460
29 changed files with 727 additions and 296 deletions

15
updaters/base.py Normal file
View File

@@ -0,0 +1,15 @@
from abc import ABC, abstractmethod
from typing import List
from database import Marketplace
from updaters.stocks_updater import StockUpdate
class BaseMarketplaceUpdater(ABC):
@abstractmethod
def __init__(self, marketplace: Marketplace):
pass
@abstractmethod
async def update(self, updates: List[StockUpdate]):
pass