Fix Enum conversion for ATH and ATL strings

This commit is contained in:
Emily Doherty 2024-12-03 04:11:30 -08:00
parent 5a2e183ccd
commit 130406786f

View File

@ -32,5 +32,9 @@ class AlertType(Enum):
return AlertType.YEARLY_HIGH
case "Yearly Low":
return AlertType.YEARLY_LOW
case "All Time High":
return AlertType.ALL_TIME_HIGH
case "All Time Low":
return AlertType.ALL_TIME_LOW
case _:
return AlertType.SPECIFIC_PRICE