Text angepasst, uv pip install pyobjc-framework-Contacts in Readme nachgezogen

This commit is contained in:
Ralph J.Mayer 2025-04-16 19:37:22 +02:00
parent fc8650dfda
commit 9f984a3744
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -33,6 +33,7 @@ source .venv/bin/activate
```bash ```bash
uv pip install contacts uv pip install contacts
uv pip install pyobjc-framework-Contacts
``` ```
5. Speichern Sie das Script in einer Datei namens `contacts_to_remind.py` 5. Speichern Sie das Script in einer Datei namens `contacts_to_remind.py`

View file

@ -96,7 +96,7 @@ def create_remind_file(birthdays, output_file='geburtstage.rem'):
f.write(remind_entry) f.write(remind_entry)
# Remind-Eintrag für die Vorwarnung 7 Tage vorher # Remind-Eintrag für die Vorwarnung 7 Tage vorher
remind_entry_advance = f'REM {day} {month_to_abbr(month)} +7 MSG Vorwarnung: {name} hat in 7 Tagen Geburtstag {age_text} %b\n' remind_entry_advance = f'REM {day} {month_to_abbr(month)} +7 MSG Vorwarnung: {name} hat %b\n {age_text}'
f.write(remind_entry_advance) f.write(remind_entry_advance)
def month_to_abbr(month_num): def month_to_abbr(month_num):