fix forecast data

This commit is contained in:
2026-01-27 17:31:48 +11:00
parent 2953690d5c
commit 3208a40f14
2 changed files with 60 additions and 1 deletions

View File

@@ -147,7 +147,7 @@ func (s *webServer) handleDashboard(w http.ResponseWriter, r *http.Request) {
return
}
forecast, err := s.db.ForecastSeriesLatest(r.Context(), s.site.Name, s.model)
forecast, err := s.db.ForecastSeriesRange(r.Context(), s.site.Name, s.model, start, end)
if err != nil {
http.Error(w, "failed to query forecast", http.StatusInternalServerError)
log.Printf("web dashboard forecast error: %v", err)