File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ class LocationSQL(Base_Forecast):
34
34
gsp_name = Column (String , nullable = True )
35
35
gsp_group = Column (String , nullable = True )
36
36
region_name = Column (String , nullable = True )
37
- installed_capacity_mw = Column (Integer , nullable = True )
37
+ installed_capacity_mw = Column (Float , nullable = True )
38
38
39
39
forecast = relationship ("ForecastSQL" , back_populates = "location" )
40
40
gsp_yields = relationship ("GSPYieldSQL" , back_populates = "location" )
@@ -49,7 +49,7 @@ class Location(EnhancedBaseModel):
49
49
gsp_name : Optional [str ] = Field (None , description = "The GSP name" )
50
50
gsp_group : Optional [str ] = Field (None , description = "The GSP group name" )
51
51
region_name : Optional [str ] = Field (None , description = "The GSP region name" )
52
- installed_capacity_mw : Optional [int ] = Field (
52
+ installed_capacity_mw : Optional [float ] = Field (
53
53
None , description = "The installed capacity of the GSP in MW"
54
54
)
55
55
Original file line number Diff line number Diff line change @@ -636,7 +636,7 @@ def get_location(
636
636
session : Session ,
637
637
gsp_id : int ,
638
638
label : Optional [str ] = None ,
639
- installed_capacity_mw : Optional [int ] = None ,
639
+ installed_capacity_mw : Optional [float ] = None ,
640
640
) -> LocationSQL :
641
641
"""
642
642
Get location object from gsp id
You can’t perform that action at this time.
0 commit comments