fix(tajika): year lord blocked instead of Muntha-lord stand-in (BUG-1223)

Panchadhikari blocked -> status blocked + reason, year_lord None, sentence
「年主暂无法确定(原因)」 on card and report; Tri-Pataka blocked with it;
Mudda unchanged. Aligned with upstream 03bea6ed. Nine public charts: both
producers byte-identical before/after.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N4f2nya58RoRu4yEmJgRGE
This commit is contained in:
Jesse_Chen
2026-10-04 07:25:48 +08:00
co-authored by Claude Opus 5.5
parent 77645ce25f
commit 7dda1b45c3
8 changed files with 249 additions and 37 deletions
+4
View File
@@ -577,6 +577,10 @@ def render_pl9_parity_markdown(packet: dict) -> str:
def _annual_selection_basis(year_lord, muntha) -> str:
year_lord = _dict(year_lord)
blocked_detail = _dict(year_lord.get('blocked_detail'))
if year_lord.get('status') == 'blocked' and blocked_detail.get('selection_basis_text'):
# BUG-1223: no stand-in year lord; 「年主暂无法确定(原因)」.
return _cell(blocked_detail['selection_basis_text'])
if year_lord.get('status') == 'conflict':
return '两种计算口径给出的年主不同,暂不合并'
data = _dict(year_lord.get('data') or year_lord)