Skip to content

Commit

Permalink
Fix port_csvs_to_db script bug (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janie115 authored May 11, 2023
1 parent e1d8f2d commit 636fea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/utilities/common_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ def load_single_subscenario_id_from_dir_to_subscenario_table(
subscenario_directories = [
d
for d in sorted(next(os.walk(inputs_dir))[1])
if d.startswith(str(subscenario_id_to_load))
if d.startswith("{}_".format(subscenario_id_to_load))
]
if len(subscenario_directories) == 1:
subscenario_directory = subscenario_directories[0]
Expand Down

0 comments on commit 636fea7

Please sign in to comment.