We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1cda82 commit cec5c86Copy full SHA for cec5c86
nowcasting_datamodel/read/read.py
@@ -223,9 +223,7 @@ def get_all_gsp_ids_latest_forecast(
223
if start_target_time is not None:
224
query = query.filter(forecast_value_model.target_time > start_target_time)
225
226
- query = query.order_by(
227
- LocationSQL.gsp_id, forecast_value_model.target_time, desc(ForecastSQL.created_utc)
228
- )
+ query = query.order_by(LocationSQL.gsp_id, desc(ForecastSQL.created_utc))
229
230
if preload_children:
231
query = query.options(joinedload(ForecastSQL.forecast_values_latest))
0 commit comments