diff --git a/leggend/api/models/notifications.py b/leggend/api/models/notifications.py index 0ffbe38..2abfd88 100644 --- a/leggend/api/models/notifications.py +++ b/leggend/api/models/notifications.py @@ -23,8 +23,6 @@ class NotificationFilters(BaseModel): case_insensitive: List[str] = [] case_sensitive: Optional[List[str]] = None - amount_threshold: Optional[float] = None - keywords: List[str] = [] class NotificationSettings(BaseModel): diff --git a/leggend/api/routes/notifications.py b/leggend/api/routes/notifications.py index fb204e2..1c192ba 100644 --- a/leggend/api/routes/notifications.py +++ b/leggend/api/routes/notifications.py @@ -48,8 +48,6 @@ async def get_notification_settings() -> APIResponse: filters=NotificationFilters( case_insensitive=filters_config.get("case-insensitive", []), case_sensitive=filters_config.get("case-sensitive"), - amount_threshold=filters_config.get("amount_threshold"), - keywords=filters_config.get("keywords", []), ), ) @@ -92,10 +90,6 @@ async def update_notification_settings(settings: NotificationSettings) -> APIRes filters_config["case-insensitive"] = settings.filters.case_insensitive if settings.filters.case_sensitive: filters_config["case-sensitive"] = settings.filters.case_sensitive - if settings.filters.amount_threshold: - filters_config["amount_threshold"] = settings.filters.amount_threshold - if settings.filters.keywords: - filters_config["keywords"] = settings.filters.keywords # Save to config if notifications_config: diff --git a/tests/unit/test_config.py b/tests/unit/test_config.py index fe696eb..445e440 100644 --- a/tests/unit/test_config.py +++ b/tests/unit/test_config.py @@ -190,7 +190,6 @@ class TestConfig: "filters": { "case-insensitive": ["salary", "utility"], "case-sensitive": ["SpecificStore"], - "amount_threshold": 100.0, } } @@ -201,4 +200,3 @@ class TestConfig: assert "salary" in filters["case-insensitive"] assert "utility" in filters["case-insensitive"] assert "SpecificStore" in filters["case-sensitive"] - assert filters["amount_threshold"] == 100.0