diff --git a/web/src/beanflows/analytics.py b/web/src/beanflows/analytics.py index e0e529f..d429bfc 100644 --- a/web/src/beanflows/analytics.py +++ b/web/src/beanflows/analytics.py @@ -677,7 +677,7 @@ async def get_weather_stress_latest() -> dict | None: FROM serving.weather_daily ) SELECT - latest.max_date AS observation_date, + ANY_VALUE(latest.max_date) AS observation_date, ROUND(AVG(w.crop_stress_index), 1) AS avg_crop_stress_index, MAX(w.crop_stress_index) AS max_crop_stress_index, COUNT(*) FILTER (WHERE w.crop_stress_index > 20) AS locations_under_stress,