fix(narayana): show the source-aware seed beside the historical sequence (BUG-1264, upstream 1918ffaf)
This commit is contained in:
@@ -26,7 +26,7 @@ def cmd_narayana_dasha(args, chart_data):
|
||||
"Narayana Dasha 需要完整的行星经度数据。",
|
||||
])
|
||||
|
||||
from narayana_dasha import narayana_dasha_full_report
|
||||
from narayana_dasha import attach_narayana_method_comparison, narayana_dasha_full_report
|
||||
|
||||
planet_lons = {}
|
||||
for pn, pd in chart_data.get('planets', {}).items():
|
||||
@@ -59,6 +59,7 @@ def cmd_narayana_dasha(args, chart_data):
|
||||
from narayana_legacy_label import label_legacy_narayana # BUG-1215; Rath view BUG-1218
|
||||
label_legacy_narayana(result, lagna_sign_idx=asc_idx, planet_lons=planet_lons,
|
||||
current_age=current_age, birth_year=birth_year)
|
||||
attach_narayana_method_comparison(result, asc_idx, planet_lons, current_age, birth_year)
|
||||
|
||||
# 格式化输出
|
||||
lines = [
|
||||
@@ -99,6 +100,16 @@ def cmd_narayana_dasha(args, chart_data):
|
||||
for line in result.get('interpretation', []):
|
||||
lines.append(f" {line}")
|
||||
|
||||
source = (result.get('method_comparison') or {}).get('source_aware') or {}
|
||||
if source:
|
||||
lines.append("")
|
||||
lines.append("── 来源对照 ──")
|
||||
if source.get('status') == 'blocked':
|
||||
lines.append(f" 来源算法:blocked({source.get('reason')})")
|
||||
else:
|
||||
seed = source.get('seed_selection') or {}
|
||||
lines.append(f" 来源起运规则:{seed.get('profile')};起运星座:{seed.get('selected_sign')}")
|
||||
|
||||
rath = result.get('rath') or {}
|
||||
if rath:
|
||||
lines.append("")
|
||||
|
||||
Reference in New Issue
Block a user