auto: 일일 백업 2026-06-26 02:00

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
hyowons
2026-06-26 02:00:04 +09:00
parent c15c3a1fec
commit 03989e9df4
161 changed files with 2658 additions and 1563 deletions
+21
View File
@@ -1119,6 +1119,23 @@ def _briefing_footer_note(lines: list[str]) -> str:
)
def _evening_close_missing_notice(data: dict) -> str:
"""오후 브리핑에서 마감시황 카드가 없을 때 상단에 띄우는 안내 배너."""
if data.get('close_summary'):
return ''
behive_close = data.get('behive_close') or {}
if behive_close.get('available_today'):
msg = '마감시황 요약을 생성하지 못했습니다.'
else:
msg = '비하이브 마감시황 영상이 아직 게시되지 않아 이번 브리핑에는 포함되지 않았습니다.'
return (
'<div style="margin:0 0 14px;padding:10px 13px;border-radius:8px;'
'background:#f5efe9;border:1px solid #e0d3c8;color:#5d4037;'
'font-size:13px;line-height:1.5;">'
f'📕 마감시황 없음 — {html_escape(msg)}</div>'
)
def _morning_missing_summary_notes(data: dict) -> list[str]:
notes = []
us_market = data.get('us_market') or {}
@@ -1175,6 +1192,10 @@ def build_html_body(data: dict) -> str:
out.append(
f'<div style="{S["greet"]}">{html_escape(greet_line1)}<br>{html_escape(greet_line2)}</div>'
)
if mode == 'evening':
notice = _evening_close_missing_notice(data)
if notice:
out.append(notice)
# 섹션 순서: 오늘 일정(+내일 상장·공모일정) → 시장 체크 → 해외 → 국내 → 주요 뉴스
out.append(_list_card(today_title, events, today_empty))
if tomorrow_listings: