diff --git a/app.py b/app.py index 3b9d41a..f6e9f8c 100644 --- a/app.py +++ b/app.py @@ -461,7 +461,7 @@ def process_excel_file(wb, filename): update_progress('엑셀 파싱', f'시트 처리 중: {sheet_name}') hope_idx = find_header_idx(headers, ['희망사항', '희망', '배치희망']) - is_worker_sheet = hope_idx is not None + is_worker_sheet = is_likely_worker_sheet(sheet_name, headers) name_idx = find_header_idx(headers, ['이름', '성명', '명칭', '근무지명', '투표소명']) addr_idx = find_header_idx(headers, ['주소', '위치', '소재지']) @@ -547,7 +547,7 @@ def process_excel_file(wb, filename): headers = [str(c.value or '').strip() for c in ws[1]] hope_idx = find_header_idx(headers, ['희망사항', '희망', '배치희망']) - is_worker_sheet = hope_idx is not None + is_worker_sheet = is_likely_worker_sheet(sheet_name, headers) name_idx = find_header_idx(headers, ['이름', '성명', '명칭', '근무지명', '투표소명']) addr_idx = find_header_idx(headers, ['주소', '위치', '소재지']) @@ -634,7 +634,7 @@ def upload(): update_progress('엑셀 파싱', f'시트 처리 중: {sheet_name}') hope_idx = find_header_idx(headers, ['희망사항', '희망', '배치희망']) - is_worker_sheet = hope_idx is not None + is_worker_sheet = is_likely_worker_sheet(sheet_name, headers) name_idx = find_header_idx(headers, ['이름', '성명', '명칭', '근무지명', '투표소명']) addr_idx = find_header_idx(headers, ['주소', '위치', '소재지']) @@ -721,7 +721,7 @@ def upload(): headers = [str(c.value or '').strip() for c in ws[1]] hope_idx = find_header_idx(headers, ['희망사항', '희망', '배치희망']) - is_worker_sheet = hope_idx is not None + is_worker_sheet = is_likely_worker_sheet(sheet_name, headers) name_idx = find_header_idx(headers, ['이름', '성명', '명칭', '근무지명', '투표소명']) addr_idx = find_header_idx(headers, ['주소', '위치', '소재지'])