From 130406786f4a0f7995e0546d93dcc0279e6735e0 Mon Sep 17 00:00:00 2001 From: Emily Doherty Date: Tue, 3 Dec 2024 04:11:30 -0800 Subject: [PATCH] Fix Enum conversion for ATH and ATL strings --- token_bot/persistant_database/alert_type.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/token_bot/persistant_database/alert_type.py b/token_bot/persistant_database/alert_type.py index 0cf4750..2f9f39f 100644 --- a/token_bot/persistant_database/alert_type.py +++ b/token_bot/persistant_database/alert_type.py @@ -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 \ No newline at end of file