Bug fix
- Validate and enforce positive price for SPECIFIC_PRICE alerts - improve error handling and alert squelching logic.
This commit is contained in:
@@ -20,7 +20,7 @@ class HistoryManager:
|
||||
self._history[flavor][Region(region)] = History(flavor, Region(region))
|
||||
|
||||
async def _retrieve_data(
|
||||
self, flavor: Flavor, region: Region
|
||||
self, flavor: Flavor, region: Region
|
||||
) -> List[Tuple[datetime.datetime, int]]:
|
||||
high_fidelity_time = datetime.datetime.now(
|
||||
tz=datetime.UTC
|
||||
@@ -32,7 +32,7 @@ class HistoryManager:
|
||||
final_response = []
|
||||
|
||||
def _convert_to_datetime(
|
||||
data: Tuple[str, int]
|
||||
data: Tuple[str, int]
|
||||
) -> Tuple[datetime.datetime, int]:
|
||||
return datetime.datetime.fromisoformat(data[0]), data[1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user