File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1359,14 +1359,14 @@ def update_subscenario_id_with_defaults(
13591359 data_columns_str = ", " .join (data_columns )
13601360
13611361 # Insert default values from the default subscenario ID for all primary
1362- # key values that do not existin int he subscenario ID
1362+ # key values that do not exist in the subscenario ID
13631363 insert_sql = f"""
13641364 INSERT INTO inputs_{ table }
13651365 ({ subscenario } , { primary_key_columns_wo_subscenario_str } , { data_columns_str } )
13661366 SELECT { subscenario_id } , { primary_key_columns_wo_subscenario_str } , { data_columns_str }
13671367 FROM inputs_{ table }
13681368 WHERE { subscenario } = { default_subscenario_id }
1369- AND { primary_key_columns_wo_subscenario_str } NOT IN (
1369+ AND ( { primary_key_columns_wo_subscenario_str } ) NOT IN (
13701370 SELECT { primary_key_columns_wo_subscenario_str }
13711371 FROM inputs_{ table }
13721372 WHERE { subscenario } = { subscenario_id }
You can’t perform that action at this time.
0 commit comments