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 874c61e commit 0594ee3Copy full SHA for 0594ee3
src/india_api/internal/inputs/indiadb/client.py
@@ -89,11 +89,8 @@ def get_predicted_power_production_for_location(
89
with self._get_session() as session:
90
sites = get_sites_by_country(session, country="india")
91
92
- # just select wind site
93
- sites = [s for s in sites if s.asset_type == asset_type]
94
-
95
- # just select region
96
- sites = [site for site in sites if site.region == location]
+ # just select wind site and region
+ sites = [s for s in sites if (s.asset_type == asset_type) and (s.region == location)]
97
98
if len(sites) == 0:
99
raise HTTPException(
0 commit comments