Change stale data alert threshold from 4 to 12 hours

- Stale data alerts now only trigger after 12 hours without new data
- Reduces false alerts during expected data gaps

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-31 11:29:52 +07:00
parent c57e46ae21
commit a424c50c5e

View File

@@ -282,7 +282,7 @@ class WaterLevelAlertSystem:
return alerts
def check_data_freshness(self, max_age_hours: int = 4) -> List[WaterAlert]:
def check_data_freshness(self, max_age_hours: int = 12) -> List[WaterAlert]:
"""Check if data is fresh enough"""
alerts = []