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: