From 74bda44964e5217901f6ec20d254bf55c9b666a5 Mon Sep 17 00:00:00 2001 From: AmyotJ Date: Wed, 10 May 2023 15:47:01 -0400 Subject: [PATCH] Fix port_csvs_to_db script --- db/utilities/common_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/utilities/common_functions.py b/db/utilities/common_functions.py index 8108c24bf..ac3ceeeaa 100644 --- a/db/utilities/common_functions.py +++ b/db/utilities/common_functions.py @@ -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]