From 639d92c4bd0772d5a5e4d6ecc0e5302d912478a3 Mon Sep 17 00:00:00 2001 From: hyowons Date: Mon, 8 Jun 2026 16:43:21 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20line2=EC=97=90=20%=20+=20=EA=B3=84?= =?UTF-8?q?=EC=A2=8C=EB=AA=85(=EC=9D=BC=EB=B0=98/ISA),=20'=EB=B9=84?= =?UTF-8?q?=EC=A4=91'=20=EA=B8=80=EC=9E=90=C2=B7'+'=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 비중 칩에서 '비중' 라벨 제거(숫자%만), 계좌명을 % 오른쪽 line2로 이동. 계좌명은 owner 접두(가희_) 떼고 유형만 '·'로(중복 제거). line3는 태그만. Co-Authored-By: Claude Opus 4.8 --- agents/stock/workspace/scripts/behive_web.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/agents/stock/workspace/scripts/behive_web.py b/agents/stock/workspace/scripts/behive_web.py index 5829489..b0c57c4 100644 --- a/agents/stock/workspace/scripts/behive_web.py +++ b/agents/stock/workspace/scripts/behive_web.py @@ -2522,6 +2522,13 @@ def _render_holding_row(r: dict, total_value: int, show_day_change: bool = False stock_cls = 'stock stock-xs' if _nlen >= 14 else ('stock stock-sm' if _nlen >= 10 else 'stock') code = html.escape(r.get('code', '') or '') accounts = html.escape('+'.join(r.get('accounts', []))) + # 표시용 계좌명 — '가희_' 등 owner 접두 떼고 유형(일반/ISA)만, 중복 제거, '·' 구분. + _acct_types: list[str] = [] + for _lb in r.get('accounts', []): + _t = (_lb or '').split('_')[-1] + if _t and _t not in _acct_types: + _acct_types.append(_t) + acct_label = html.escape('·'.join(_acct_types)) qty = r.get('qty', 0) avg = r.get('avg', 0) price = r.get('price', 0) @@ -2671,8 +2678,8 @@ def _render_holding_row(r: dict, total_value: int, show_day_change: bool = False
{_buy_rank_badge(buy_amount)}{stock}
-
{star}보유 {qty:,}주{_pending_badges_html(r)}비중 {weight:.2f}%
-
{tag_chip}{accounts}
+
{star}보유 {qty:,}주{_pending_badges_html(r)}{weight:.2f}%{acct_label}
+
{tag_chip}
{summary_journal_html}