From 5846ad8a70b5ed3976b246d64edc79ce8219d3fd Mon Sep 17 00:00:00 2001 From: user01 Date: Mon, 25 May 2026 00:36:55 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20=ED=9D=AC=EB=A7=9D=EC=82=AC?= =?UTF-8?q?=ED=95=AD=20=EC=8B=9C=EA=B0=84=EB=8C=80=20=EB=AC=B4=EC=8B=9C,?= =?UTF-8?q?=20=ED=88=AC=ED=91=9C=EC=86=8C=EB=AA=85=20=EC=9D=BC=EC=B9=98?= =?UTF-8?q?=EB=A1=9C=EB=A7=8C=20=ED=85=9C=ED=94=8C=EB=A6=BF=20=EB=A7=A4?= =?UTF-8?q?=EC=B9=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app.py b/app.py index 5058652..0e3652a 100644 --- a/app.py +++ b/app.py @@ -842,7 +842,6 @@ def export(): dob_col = find_header_idx(headers, ['생년월일', '생일']) phone_col = find_header_idx(headers, ['연락처', '전화', '휴대폰']) addr_col = find_header_idx(headers, ['주소', '위치', '소재지']) - time_col = find_header_idx(headers, ['시간대']) wp_name_col = find_header_idx(headers, ['투표소']) if wp_name_col is None: continue @@ -854,13 +853,8 @@ def export(): current_wp = v if not current_wp: continue - time_slot = str(row[time_col] or '').strip() if time_col is not None else '' candidates = [w for w in wp_workers.get(current_wp, []) - if w['id'] not in used_names - and (not time_slot or time_slot in w.get('hope', ''))] - if not candidates and time_slot: - candidates = [w for w in wp_workers.get(current_wp, []) - if w['id'] not in used_names] + if w['id'] not in used_names] for w in candidates[:1]: if name_col is not None and cells[name_col].value is None: cells[name_col].value = w['name']