fix: report and synastry reader text loses its last backstage wording (BUG-2038)
A pronoun whose planet was in a removed sentence takes that planet; only a planet back in its natal sign is given to the reading; the 现在这几年 section leads with the stage of life and dates only the main dasha; the health reminder is one fixed program sentence; the synastry appendix no longer doubles 所以 and shows the technical summary with names, no machine tags, minutes as 分 and 秒. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
This commit is contained in:
@@ -183,8 +183,11 @@ def timeline(packet: dict, language: str) -> str:
|
||||
if md.get("sign"):
|
||||
label = narayana.get("algorithm_label" if zh else "algorithm_label_en")
|
||||
heading = "Narayana 当前大运" if zh else "Current Narayana period"
|
||||
if label:
|
||||
heading += f"({label})" if zh else f" ({label})"
|
||||
# BUG-2038 原值:中文开篇也带模块给出的算法标签(版本与出处,写在括号里)。
|
||||
# 新值:中文开篇不带;标签留在后面的 Narayana 章节和附录。英文版不变。
|
||||
# 原因:复测第九轮;开篇是读者正文,版本出处是后台信息(占星师 2026-11-19 分层答复)。
|
||||
if label and not zh:
|
||||
heading += f" ({label})"
|
||||
current_periods = [(heading, md)]
|
||||
if ad.get("sign") and current.get("ad_status") != "blocked":
|
||||
current_periods.append(("小运" if zh else "Antardasha", ad))
|
||||
|
||||
@@ -737,8 +737,12 @@ def _transits(packet: dict, full_reading: dict | None = None) -> dict[str, Any]:
|
||||
returns = transit_natal_sign_facts(
|
||||
dig(packet, "core_chart.planets"), out.get("planets"), key_dates, out.get("target_date"),
|
||||
)
|
||||
if returns:
|
||||
out["transit_natal_sign"] = returns
|
||||
# BUG-2038 原值:两颗星各一行,same_sign 为 false 的也给。新值:只给回到本命星座的行。
|
||||
# 原因:复测第九轮正文写出「行运木星从出生时的摩羯座走到狮子座,不在同一个星座」这种没有内容的话;
|
||||
# 问答的关键事实行同样只列 same_sign 为 true 的(BUG-2006)。`returns` 仍完整,用于下面取土星离开日期。
|
||||
back = [row for row in returns if row.get("same_sign") is True]
|
||||
if back:
|
||||
out["transit_natal_sign"] = back
|
||||
sade = dig(packet, SADE_SATI)
|
||||
if isinstance(sade, dict):
|
||||
out["sade_sati"] = _pick(sade, ("is_active", "phase", "moon_sign", "phases"))
|
||||
|
||||
Reference in New Issue
Block a user