File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def write_yaml_file(output_file, json_output):
8383def read_oss_report (excel_file , sheet_names = "" ):
8484 _oss_report_items = []
8585 _xl_sheets = []
86- SHEET_PREFIX_TO_READ = ["BIN " , "BOM " , "SRC " ]
86+ SHEET_PREFIX_TO_READ = ["bin " , "bom " , "src " ]
8787 if sheet_names :
8888 sheet_name_prefix_math = False
8989 sheet_name_to_read = sheet_names .split ("," )
@@ -96,8 +96,9 @@ def read_oss_report(excel_file, sheet_names=""):
9696 xl_workbook = xlrd .open_workbook (excel_file )
9797 for sheet_name in xl_workbook .sheet_names ():
9898 try :
99- if any (((sheet_name_prefix_math and sheet_name .startswith (sheet_to_read ))
100- or sheet_name == sheet_to_read )
99+ sheet_name_lower = sheet_name .lower ()
100+ if any (((sheet_name_prefix_math and sheet_name_lower .startswith (sheet_to_read .lower ()))
101+ or sheet_name_lower == sheet_to_read .lower ())
101102 for sheet_to_read in sheet_name_to_read ):
102103 sheet = xl_workbook .sheet_by_name (sheet_name )
103104 if sheet :
You can’t perform that action at this time.
0 commit comments