From 474ccf09eb761e96680c94bd199ff08bccc08bd8 Mon Sep 17 00:00:00 2001 From: hyowons Date: Mon, 15 Jun 2026 02:00:03 +0900 Subject: [PATCH] =?UTF-8?q?auto:=20=EC=9D=BC=EC=9D=BC=20=EB=B0=B1=EC=97=85?= =?UTF-8?q?=202026-06-15=2002:00?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- .../skills/whooing-sync/scripts/whooing_sync.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/agents/budget/workspace/skills/whooing-sync/scripts/whooing_sync.py b/agents/budget/workspace/skills/whooing-sync/scripts/whooing_sync.py index 7c4e98f..30d4a13 100755 --- a/agents/budget/workspace/skills/whooing-sync/scripts/whooing_sync.py +++ b/agents/budget/workspace/skills/whooing-sync/scripts/whooing_sync.py @@ -921,6 +921,16 @@ def main(): if info.get("side") == "liability": liability_payment_offset = int(liability_payment_offsets.get(info["account"], 0) or 0) whoo_b = actual_whoo_b + liability_payment_offset + # 카드사 누적사용액이 카드대금 상환을 반영하는지는 문자 형식/시점에 따라 다르다. + # 실제 후잉 잔액이 보정 후 값보다 SMS에 더 가깝다면 보정치를 소진된 것으로 본다. + if ( + liability_payment_offset + and abs(actual_whoo_b - sms_b) < abs(whoo_b - sms_b) + ): + liability_payment_offsets[info["account"]] = 0 + liability_payment_offset = 0 + whoo_b = actual_whoo_b + changed = True diff = whoo_b - sms_b prev = carriers_state.get(carrier, {}) prev_diff = prev.get("last_diff")