From 363cf3576b6ca317a0273bf8785042bdd1d65d9d Mon Sep 17 00:00:00 2001 From: umsangdon Date: Fri, 13 Nov 2026 20:49:18 +0900 Subject: [PATCH] =?UTF-8?q?fix(828-2):=20=ED=8C=90=20=EC=9D=BC=EC=9C=84=20?= =?UTF-8?q?=EA=B5=AC=EC=84=B1=20=EC=A4=84=20=EC=9E=AC=EB=A3=8C=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EB=8B=A8=EC=9C=84=20%=20=EC=9E=90=EC=9B=90(?= =?UTF-8?q?=EC=9E=A1=EC=9E=AC=EB=A3=8C=EB=B9=84=20=E3=80=8C=EC=9E=AC?= =?UTF-8?q?=EB=A3=8C=EB=B9=84=EC=9D=98=20%=E3=80=8D)=20=EB=BA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 5 건 일위 자재 줄 140 → 136(봉화 1 · 대흥 3 = 율 자원) · 이어짐 69 그대로 Co-Authored-By: Claude Opus 5.5 --- M02_MasterTemplete/M02_San_MatFind.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/M02_MasterTemplete/M02_San_MatFind.py b/M02_MasterTemplete/M02_San_MatFind.py index 66fc82628..66e972285 100644 --- a/M02_MasterTemplete/M02_San_MatFind.py +++ b/M02_MasterTemplete/M02_San_MatFind.py @@ -75,7 +75,7 @@ def from_book(rows: Any) -> list[dict]: def ilwi_found(saved: dict) -> list[tuple[dict, dict]]: """둘 꼴 「일위」 구성 줄(828 · 엑셀 일위대가표 숨은 칸 · STC 구성표) 자재 줄 → [(일위 블록, 자원)] · - 자원 `재료찾기` = 산근 줄과 같은 판정(`M02_San_Link.m01` · 단서 = 파일 단서 + 대가 머리).""" + 단위 % 자원(잡재료비 「재료비의 %」) 뺌 · 자원 `재료찾기` = 산근 줄과 같은 판정(`M02_San_Link.m01` · 단서 = 파일 단서 + 대가 머리).""" from M02_MasterTemplete.M02_San_Link import m01 out = [] @@ -83,7 +83,9 @@ def ilwi_found(saved: dict) -> list[tuple[dict, dict]]: head = f"{blk.get('이름') or ''} {blk.get('규격') or ''}" with clues_on(saved.get("단서"), head): for ln in blk.get("줄") or []: - if ln.get("갈래") != "M" or not ln.get("이름"): + if ( + ln.get("갈래") != "M" or not ln.get("이름") or "%" in str(ln.get("단위")) + ): # % = 율 자원 continue res = {"꼴": saved.get("꼴"), "갈래": "재료", "코드": ln.get("코드") or ""} res |= {k: ln.get(k) or "" for k in ("이름", "규격", "단위")}