fix: ceremony에서 동률 부문/후보 정보 숨김 (발표 spoiler 방지)
큰 화면 공유 상황에서 동률 후보가 노출되면 발표 임팩트 ↓. '시상 준비 중입니다' 단순 안내만 표시. 진행자는 별도 화면에서 어드민 처리. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
16
app.py
16
app.py
@@ -513,17 +513,13 @@ def render_ceremony():
|
|||||||
titles = get_titles()
|
titles = get_titles()
|
||||||
winners, _ = compute_winners()
|
winners, _ = compute_winners()
|
||||||
|
|
||||||
# 동률 미해결 있으면 ceremony 차단
|
# 동률 미해결 있으면 ceremony 차단 (부문/후보 정보는 노출 X — 발표 spoiler 방지)
|
||||||
pending = [
|
pending_count = sum(
|
||||||
(col, label) for col, label, _ in CATEGORIES
|
1 for col, _, _ in CATEGORIES
|
||||||
if winners.get(col, {}).get("status") == "tie"
|
if winners.get(col, {}).get("status") == "tie"
|
||||||
]
|
)
|
||||||
if pending:
|
if pending_count > 0:
|
||||||
st.error("⚠️ 동률 미해결 — 어드민 페이지에서 추첨/선택 후 재진입")
|
st.warning("⏳ 시상 준비 중입니다. 잠시만 기다려주세요.")
|
||||||
for col, label in pending:
|
|
||||||
tied = winners[col]["tied"]
|
|
||||||
tied_labels = ", ".join(fmt_team(t, titles) for t in tied)
|
|
||||||
st.write(f"- {label}: {tied_labels}")
|
|
||||||
return
|
return
|
||||||
|
|
||||||
# CATEGORIES 순서로 reveal (손선풍기 → 양우산 → 팜레스트)
|
# CATEGORIES 순서로 reveal (손선풍기 → 양우산 → 팜레스트)
|
||||||
|
|||||||
Reference in New Issue
Block a user