From 814c6ddd0dffabfe4cdd52cf6f5572fe8a19aee2 Mon Sep 17 00:00:00 2001 From: Soim Kim Date: Sun, 18 Aug 2024 16:20:14 +0900 Subject: [PATCH] Fix a bug related to type --- src/fosslight_oss_pkg/_parsing_excel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fosslight_oss_pkg/_parsing_excel.py b/src/fosslight_oss_pkg/_parsing_excel.py index 0fd2d8d..4e63633 100644 --- a/src/fosslight_oss_pkg/_parsing_excel.py +++ b/src/fosslight_oss_pkg/_parsing_excel.py @@ -22,7 +22,7 @@ def get_sheet_name(yaml_file, sheet_list): yaml_file = yaml_file[0:MAX_SHEET_NAME_LEN] count = 1 - while yaml_file in sheet_list: + while yaml_file in sheet_list.keys(): end_idx = MAX_SHEET_NAME_LEN - 1 - len(str(count)) yaml_file = f"{yaml_file[0:end_idx]}_{count}" count += 1