auto: 일일 백업 2026-06-21 02:00
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -935,13 +935,13 @@ def main():
|
||||
prev = carriers_state.get(carrier, {})
|
||||
prev_diff = prev.get("last_diff")
|
||||
|
||||
# 카뱅 자동 이자/캐시백 보정: 자산 + 후잉이 SMS보다 적고(deposit 누락), 차이 ≤ 5,000원.
|
||||
# 은행 자동 이자/캐시백 보정: 자산 + 후잉이 SMS보다 적고(deposit 누락), 차이 ≤ 5,000원.
|
||||
# 횟수·날짜 제한 없이 매번 자동 분개. 매 발화마다 텔레그램 알림으로 누적 가시성 확보.
|
||||
# 정상 SMS가 와서 deposit이 후잉에 들어가면 diff>=0이 되어 안전하게 미발화.
|
||||
cur_month = datetime.now(KST).strftime("%Y-%m")
|
||||
if (
|
||||
info.get("side") == "asset"
|
||||
and carrier == "kakaobank"
|
||||
and carrier in {"kakaobank", "shinhan_bank"}
|
||||
and diff < 0
|
||||
and abs(diff) <= 5000
|
||||
):
|
||||
@@ -957,7 +957,7 @@ def main():
|
||||
ok, status, body = post_to_whooing(webhook_url, interest_payload, dry_run=False)
|
||||
if ok:
|
||||
notify.send(
|
||||
f"💰 <b>카뱅 은행이자 자동 분개</b>\n"
|
||||
f"💰 <b>{notify.escape_html(info['label'])} 은행이자 자동 분개</b>\n"
|
||||
f"+{interest_amount:,}원 ({notify.escape_html(info['account'])} ← 기타수익)"
|
||||
)
|
||||
carriers_state[carrier] = {
|
||||
|
||||
Reference in New Issue
Block a user