diff --git a/src/mailer.py b/src/mailer.py index 11044b8..056b091 100644 --- a/src/mailer.py +++ b/src/mailer.py @@ -86,9 +86,10 @@ def build_message(birthdays: list[dict], target_date: date | None = None) -> Ema for b in birthdays: date_str = fmt_birthday_short(b["birthday"]) age = fmt_birthday_age(b["birthday"], today) - age_str = f" · {age} Jahre" if age is not None else "" + 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 "" - name_html = f'{b["full_name"]}' if contact_link else b["full_name"] + link_start = f'' if contact_link else "" + link_end = "" if contact_link else "" is_today = b["birthday"].month == today.month and b["birthday"].day == today.day card_bg = "#fff3cd" if is_today else "#fff" org_html = f'