From 328cb46d92fbb1eccacb8defeefd5358e38bff19 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Sun, 1 Nov 2026 16:38:24 +0900 Subject: [PATCH] =?UTF-8?q?fix(719-2):=20=EC=82=B0=EA=B7=BC=20=EA=B2=B0?= =?UTF-8?q?=EA=B3=BC=EB=8B=A8=EC=9C=84=20=EB=B0=B0=20=3D=20712-2=20?= =?UTF-8?q?=EB=8B=A8=EC=9C=84=20=ED=95=9C=20=EB=B2=8C(master=5Funit.per)?= =?UTF-8?q?=20=E2=80=94=20=EB=B0=9B=EC=9D=80=20712-2=20=EA=B0=80=20Store?= =?UTF-8?q?=5FCombo.=5FPER=20=EB=A5=BC=20=EA=B1=B7=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- B09_Estimation/B09_Estimation_Sangeun.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/B09_Estimation/B09_Estimation_Sangeun.py b/B09_Estimation/B09_Estimation_Sangeun.py index 9815913f2..dedd80e90 100644 --- a/B09_Estimation/B09_Estimation_Sangeun.py +++ b/B09_Estimation/B09_Estimation_Sangeun.py @@ -208,12 +208,11 @@ class _Prices: def _unit(row: dict) -> tuple[str, Decimal]: """결과단위 1 단위 — (단위, 배)(「원/10㎡」 = ㎡ · 10) · 알약 규칙(`combo_pills`) 그대로 · 줄 = 사본 단가 묶음 것(M01 다시 안 읽음 · 719-2).""" - per = combo_store._PER.findall(str(row.get("결과단위") or "")) + per = combo_store.mu.per(row.get("결과단위")) # 712-2 단위 한 벌 if not per: return "", Decimal(1) - times = per[0][0].replace(",", "") unit = " · ".join(dict.fromkeys(u for _, u in per)) - return unit, Decimal(times) if len(per) == 1 and times else Decimal(1) + return unit, Decimal(per[0][0]) if len(per) == 1 else Decimal(1) def unit_of(whole: Any, code: str) -> str: