File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
src/india_api/internal/inputs/indiadb Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ classifiers = ["Programming Language :: Python :: 3"]
19
19
dependencies = [
20
20
" cryptography >= 42.0.7" ,
21
21
" fastapi >= 0.105.0" ,
22
- " pvsite-datamodel >= 1.0.40 " ,
22
+ " pvsite-datamodel >= 1.0.41 " ,
23
23
" pyjwt >= 2.8.0" ,
24
24
" pyproj >= 3.3.0" ,
25
25
" pytz >= 2023.3" ,
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ def get_predicted_power_production_for_location(
87
87
88
88
# get site uuid
89
89
with self ._get_session () as session :
90
- sites = get_sites_by_country (session , country = "india" )
90
+ sites = get_sites_by_country (session , country = "india" , client_name = location )
91
91
92
92
# just select wind site and region
93
93
sites = [s for s in sites if (s .asset_type == asset_type ) and (s .region == location )]
@@ -141,7 +141,7 @@ def get_generation_for_location(
141
141
142
142
# get site uuid
143
143
with self ._get_session () as session :
144
- sites = get_sites_by_country (session , country = "india" )
144
+ sites = get_sites_by_country (session , country = "india" , client_name = location )
145
145
146
146
# just select wind site
147
147
sites = [site for site in sites if site .asset_type == asset_type ]
Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ def sites(db_session):
65
65
ml_id = 1 ,
66
66
asset_type = "pv" ,
67
67
country = "india" ,
68
- region = 'testID'
68
+ region = 'testID' ,
69
+ client_site_name = 'ruvnl_pv'
69
70
)
70
71
db_session .add (site )
71
72
sites .append (site )
@@ -79,7 +80,8 @@ def sites(db_session):
79
80
ml_id = 2 ,
80
81
asset_type = "wind" ,
81
82
country = "india" ,
82
- region = 'testID'
83
+ region = 'testID' ,
84
+ client_site_name = 'ruvnl_wind'
83
85
)
84
86
db_session .add (site )
85
87
sites .append (site )
You can’t perform that action at this time.
0 commit comments