Update current functions to give data relevant to only the registered region
This commit is contained in:
@@ -30,6 +30,10 @@ class History:
|
||||
def last_price_datum(self) -> Tuple[datetime.datetime, int] | None:
|
||||
return self._latest_price_datum
|
||||
|
||||
@property
|
||||
def last_price_movement(self) -> int:
|
||||
return self._last_price_movement
|
||||
|
||||
@property
|
||||
def history(self) -> List[Tuple[datetime.datetime, int]]:
|
||||
return self._history
|
||||
|
||||
@@ -62,5 +62,5 @@ class HistoryManager:
|
||||
return []
|
||||
|
||||
|
||||
async def get_history(self, flavor, region) -> History:
|
||||
def get_history(self, flavor, region) -> History:
|
||||
return self._history[flavor][region]
|
||||
|
||||
Reference in New Issue
Block a user