From 636fea7778f202125f41bce26c910d3312b40f32 Mon Sep 17 00:00:00 2001 From: Janie115 <43097430+Janie115@users.noreply.github.com> Date: Thu, 11 May 2023 12:05:25 -0400 Subject: [PATCH] Fix port_csvs_to_db script bug (#1010) --- 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 4973983dd..746298373 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]