Skip to content

Commit

Permalink
fix the query to allow for historical dates
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanda Eames committed Jan 20, 2025
1 parent 01cdec7 commit 378903b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion global-api/routes/ghgi_emission_forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def db_city_emission_forecast(actor_id, forecast_year, spatial_granularity):
SELECT actor_id,cluster_id,cluster_name,cluster_description,gpc_sector,forecast_year,future_year,growth_rate
FROM modelled.ghgi_emission_forecast
WHERE actor_id = :actor_id
AND forecast_year = :forecast_year
AND future_year >= :forecast_year
AND spatial_granularity = :spatial_granularity
"""
)
Expand Down

0 comments on commit 378903b

Please sign in to comment.