maj via codex
This commit is contained in:
@@ -19,6 +19,17 @@ SIGN_TO_TYPE = {
|
||||
"Bélier": "Fruit", "Lion": "Fruit", "Sagittaire": "Fruit",
|
||||
}
|
||||
|
||||
SAINTS_BY_MMDD = {
|
||||
"04-23": "Saint Georges",
|
||||
"04-25": "Saint Marc",
|
||||
"05-11": "Saint Mamert",
|
||||
"05-12": "Saint Pancrace",
|
||||
"05-13": "Saint Servais",
|
||||
"05-14": "Saint Boniface",
|
||||
"05-19": "Saint Yves",
|
||||
"05-25": "Saint Urbain",
|
||||
}
|
||||
|
||||
|
||||
@dataclass
|
||||
class DayInfo:
|
||||
@@ -29,6 +40,7 @@ class DayInfo:
|
||||
montante_descendante: str
|
||||
signe: str
|
||||
type_jour: str
|
||||
saint_du_jour: str
|
||||
perigee: bool
|
||||
apogee: bool
|
||||
noeud_lunaire: bool
|
||||
@@ -126,6 +138,7 @@ def build_calendar(start: date, end: date) -> list[DayInfo]:
|
||||
lat, lon, dist = v_moon.ecliptic_latlon()
|
||||
signe = zodiac_sign_from_lon(lon.degrees % 360.0)
|
||||
type_jour = SIGN_TO_TYPE[signe]
|
||||
saint_du_jour = SAINTS_BY_MMDD.get(d.strftime("%m-%d"), "")
|
||||
result.append(
|
||||
DayInfo(
|
||||
date=d.isoformat(),
|
||||
@@ -135,6 +148,7 @@ def build_calendar(start: date, end: date) -> list[DayInfo]:
|
||||
montante_descendante=montante,
|
||||
signe=signe,
|
||||
type_jour=type_jour,
|
||||
saint_du_jour=saint_du_jour,
|
||||
perigee=(d in perigee_days),
|
||||
apogee=(d in apogee_days),
|
||||
noeud_lunaire=(d in node_days),
|
||||
|
||||
Reference in New Issue
Block a user