fix forecast data
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user