Skip to content

Commit 7893f72

Browse files
committed
Merge branch 'speed-up-historic'
2 parents ec137a9 + 6b4ff70 commit 7893f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nowcasting_datamodel/update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def update_all_forecast_latest(forecasts: List[ForecastSQL], session: Session):
125125
forecast_historic = [
126126
forecast_historic_one_gsps
127127
for forecast_historic_one_gsps in forecasts_historic_all_gsps
128-
if forecast.location.gsp_id == gsp_id
128+
if forecast_historic_one_gsps.location.gsp_id == gsp_id
129129
]
130130
if len(forecast_historic) == 0:
131131
forecast_historic = None

0 commit comments

Comments
 (0)