엑셀 시트 탭 이름으로 근무자/근무처 구분하도록 변경

This commit is contained in:
user01
2026-05-18 20:13:51 +09:00
parent e3fb8de5c5
commit ffca14f2e6

8
app.py
View File

@@ -461,7 +461,7 @@ def process_excel_file(wb, filename):
update_progress('엑셀 파싱', f'시트 처리 중: {sheet_name}') update_progress('엑셀 파싱', f'시트 처리 중: {sheet_name}')
hope_idx = find_header_idx(headers, ['희망사항', '희망', '배치희망']) 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, ['이름', '성명', '명칭', '근무지명', '투표소명']) name_idx = find_header_idx(headers, ['이름', '성명', '명칭', '근무지명', '투표소명'])
addr_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]] headers = [str(c.value or '').strip() for c in ws[1]]
hope_idx = find_header_idx(headers, ['희망사항', '희망', '배치희망']) 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, ['이름', '성명', '명칭', '근무지명', '투표소명']) name_idx = find_header_idx(headers, ['이름', '성명', '명칭', '근무지명', '투표소명'])
addr_idx = find_header_idx(headers, ['주소', '위치', '소재지']) addr_idx = find_header_idx(headers, ['주소', '위치', '소재지'])
@@ -634,7 +634,7 @@ def upload():
update_progress('엑셀 파싱', f'시트 처리 중: {sheet_name}') update_progress('엑셀 파싱', f'시트 처리 중: {sheet_name}')
hope_idx = find_header_idx(headers, ['희망사항', '희망', '배치희망']) 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, ['이름', '성명', '명칭', '근무지명', '투표소명']) name_idx = find_header_idx(headers, ['이름', '성명', '명칭', '근무지명', '투표소명'])
addr_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]] headers = [str(c.value or '').strip() for c in ws[1]]
hope_idx = find_header_idx(headers, ['희망사항', '희망', '배치희망']) 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, ['이름', '성명', '명칭', '근무지명', '투표소명']) name_idx = find_header_idx(headers, ['이름', '성명', '명칭', '근무지명', '투표소명'])
addr_idx = find_header_idx(headers, ['주소', '위치', '소재지']) addr_idx = find_header_idx(headers, ['주소', '위치', '소재지'])