Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vjterpstra committed Jan 11, 2022
1 parent 1edd738 commit aac8547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dse_do_utils/scenariodbmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ def _update_scenario_output_tables_in_db(self, scenario_name, outputs: Outputs,
# 2. Delete all output tables
for scenario_table_name, db_table in reversed(self.output_db_tables.items()): # Note this INCLUDES the SCENARIO table!
if (scenario_table_name != 'Scenario'):
db_table._delete_scenario_table_from_db()
db_table._delete_scenario_table_from_db(scenario_name, connection)
# 3. Insert new data
for scenario_table_name, db_table in self.output_db_tables.items(): # Note this INCLUDES the SCENARIO table!
if (scenario_table_name != 'Scenario') and db_table.db_table_name in outputs.keys(): # If in given set of tables to replace
Expand Down

0 comments on commit aac8547

Please sign in to comment.