Skip to content

Commit

Permalink
Merge pull request #160 from fosslight/type
Browse files Browse the repository at this point in the history
Fix a bug related to type
  • Loading branch information
soimkim authored Aug 18, 2024
2 parents bb3bc9a + 814c6dd commit 0e3f4c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fosslight_oss_pkg/_parsing_excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e3f4c2

Please sign in to comment.