diff --git a/src/mailer.py b/src/mailer.py index 070a616..47dc9bf 100644 --- a/src/mailer.py +++ b/src/mailer.py @@ -88,8 +88,6 @@ def build_message(birthdays: list[dict], target_date: date | None = None) -> Ema age = fmt_birthday_age(b["birthday"], today) age_str = f' ยท {age} Jahre' if age is not None else "" contact_link = f"{Config.WEB_URL.rstrip('/')}/contacts/{b['id']}" if Config.WEB_URL else "" - is_today = b["birthday"].month == today.month and b["birthday"].day == today.day - card_bg = "#f0f0f0" if is_today else "#ffffff" org_html = f'
{b["organization"]}
' if b.get("organization") else "" photo_cell = "" if b.get("photo_url"): @@ -107,7 +105,7 @@ def build_message(birthdays: list[dict], target_date: date | None = None) -> Ema cards_html += f""" - +
{content_html} @@ -148,7 +146,7 @@ def build_message(birthdays: list[dict], target_date: date | None = None) -> Ema
- +

Geburtstage heute