fix(synastry): restore report paging and finish the third review gaps
The list query had been split into four reads, so older pages no longer followed one cursor. A7 was read from the wrong module, and the shell asked for the product switch on every mount. Co-Authored-By: Grok (agent loop) Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Grok (agent loop)
Cursor
parent
88d641974e
commit
123295135a
@@ -151,19 +151,24 @@ def relationship_structure(reading: dict[str, Any]) -> dict[str, Any]:
|
||||
seventh = _SIGN_LORDS[_SIGNS[(_SIGNS.index(ascendant) + 6) % 12]] if ascendant in _SIGN_LORDS else None
|
||||
jaimini = modules.get("jaimini") if isinstance(modules.get("jaimini"), dict) else {}
|
||||
darakaraka = (
|
||||
_named_planet(jaimini, ("chara_karaka_standard", "karakas", "DK"))
|
||||
or _named_planet(jaimini, ("chara_karaka_8", "karaka_table_8", "Darakaraka"))
|
||||
_named_planet(jaimini, ("chara_karakas", "DK"))
|
||||
or _named_planet(jaimini, ("chara_karakas", "Darakaraka"))
|
||||
or _named_planet(jaimini, ("chara_karaka_7", "karaka_table", "Darakaraka"))
|
||||
or _named_planet(jaimini, ("chara_karaka_8", "karaka_table", "Darakaraka"))
|
||||
)
|
||||
special = modules.get("special_lagnas") if isinstance(modules.get("special_lagnas"), dict) else {}
|
||||
arudha = modules.get("arudha_padas") if isinstance(modules.get("arudha_padas"), dict) else {}
|
||||
if not special and isinstance(jaimini.get("special_lagnas"), dict):
|
||||
special = jaimini.get("special_lagnas")
|
||||
arudha = jaimini.get("arudha_padas") if isinstance(jaimini.get("arudha_padas"), dict) else {}
|
||||
if not arudha and isinstance(modules.get("arudha_padas"), dict):
|
||||
arudha = modules.get("arudha_padas")
|
||||
padas = arudha.get("padas") if isinstance(arudha.get("padas"), dict) else arudha
|
||||
upapada = _sign_name(special.get("Upapada_Lagna") or special.get("UL"))
|
||||
upapada = _sign_name(special.get("Upapada_Lagna") or special.get("UL") or arudha.get("upapada"))
|
||||
if upapada is None and isinstance(padas, dict):
|
||||
upapada = _sign_name(padas.get("UL"))
|
||||
a7 = _sign_name(special.get("A7") or special.get("Darapada"))
|
||||
if a7 is None and isinstance(padas, dict):
|
||||
a7 = _sign_name(padas.get("A7"))
|
||||
a7 = _sign_name(padas.get("A7") if isinstance(padas, dict) else None)
|
||||
if a7 is None:
|
||||
a7 = _sign_name(special.get("A7") or special.get("Darapada") or arudha.get("A7"))
|
||||
vargas = modules.get("varga_full") if isinstance(modules.get("varga_full"), dict) else {}
|
||||
navamsa = vargas.get("D9_Navamsa") if isinstance(vargas.get("D9_Navamsa"), dict) else {}
|
||||
d9 = _sign_name(navamsa.get("Ascendant") or navamsa.get("ascendant"))
|
||||
|
||||
Reference in New Issue
Block a user