File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
nowcasting_datamodel/models Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -100,15 +100,12 @@ def convert_df_to_national_forecast(
100
100
).to_orm ()
101
101
forecast_value_sql .adjust_mw = 0.0
102
102
103
+ forecast_value_sql .properties = {}
103
104
if "forecast_mw_plevel_10" in forecast_values_df .columns :
104
- forecast_value_sql .properties = {
105
- "10" : forecast_value .forecast_mw_plevel_10 ,
106
- }
105
+ forecast_value_sql .properties ["10" ] = forecast_value .forecast_mw_plevel_10
107
106
108
107
if "forecast_mw_plevel_90" in forecast_values_df .columns :
109
- forecast_value_sql .properties = {
110
- "90" : forecast_value .forecast_mw_plevel_90 ,
111
- }
108
+ forecast_value_sql .properties ["90" ] = forecast_value .forecast_mw_plevel_90
112
109
113
110
forecast_values .append (forecast_value_sql )
114
111
You can’t perform that action at this time.
0 commit comments