supply chart context to saham calculations

This commit is contained in:
732642856
2026-07-14 11:36:40 +08:00
parent ebad1693b8
commit dafffcd3cf
2 changed files with 9 additions and 1 deletions
+8 -1
View File
@@ -5100,7 +5100,14 @@ def cmd_full_reading(args):
# Sahams(特殊点)—— 需要出生时间
birth_dt = getattr(args, 'birth_datetime', None)
if birth_dt and planet_lons:
sahams_result = calc_all_sahams(planet_lons, asc_deg, birth_dt)
sahams_result = calc_all_sahams(
planet_lons,
asc_deg,
birth_dt,
lat=getattr(args, 'lat', None),
lon=getattr(args, 'lon', None),
tz=getattr(args, 'tz', None),
)
report['modules']['sahams'] = sahams_result
else:
report['modules']['sahams'] = {'warning': 'birth_datetime or planet_lons missing, skip saham calc'}