Skip to content

Commit

Permalink
Avoid cache when posting forecasts (#3858)
Browse files Browse the repository at this point in the history
  • Loading branch information
conbrad authored Sep 25, 2024
1 parent 61ccde9 commit 30f53df
Show file tree
Hide file tree
Showing 2 changed files with 131 additions and 191 deletions.
2 changes: 1 addition & 1 deletion api/app/morecast_v2/forecasts.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async def construct_wf1_forecasts(session: ClientSession, forecast_records: List
start_time = vancouver_tz.localize(datetime.combine(min_forecast_date, time.min))
end_time = vancouver_tz.localize(datetime.combine(max_forecast_date, time.max))
unique_station_codes = list(set([f.station_code for f in forecast_records]))
dailies = await get_forecasts_for_stations_by_date_range(session, header, start_time, end_time, unique_station_codes)
dailies = await get_forecasts_for_stations_by_date_range(session, header, start_time, end_time, unique_station_codes, False)

# Shape the WF1 dailies into a dictionary keyed by station codes for easier consumption
grouped_dailies = defaultdict(list[StationDailyFromWF1])
Expand Down
Loading

0 comments on commit 30f53df

Please sign in to comment.