Commit Graph

3 Commits

Author SHA1 Message Date
rpotter6298 ff0c65a794 Fix weather display: use issued_at for zero-hour truth and deduplicate forecasts
- Changed save_zero_hour_forecast_as_truth to use issued_at instead of target_at for resolved_at timestamp
- Added window function to deduplicate forecast points, keeping only the most recent for each (target_at, horizon_hours)
- Limits resolved truth query to current time to prevent future points from displaying
- This fixes vertical lines in the chart caused by duplicate forecasts and ensures truth data displays correctly
2026-04-25 21:03:50 +02:00
rpotter6298 0814e7c965 Fix: Use issued_at instead of target_at for zero-hour resolved truth timestamps
The zero-hour forecasts (observations) were being saved with resolved_at = target_at,
which could be in the future. This caused them to be filtered out by the time-based
query in load_display_dataset(). Now using issued_at (when the observation was made)
ensures the timestamps fall within the valid display range.
2026-04-25 21:00:34 +02:00
rpotter6298 9d15860f0b first_commit 2026-04-25 20:35:25 +02:00