From 5fc23908153a257f07c26df9a47d4a7273d7c2d0 Mon Sep 17 00:00:00 2001 From: Lukas Martin Date: Sat, 8 Nov 2025 22:13:12 +0100 Subject: [PATCH] [LM] changed msg and last match id rotation --- participants.csv | 23 ++++++++++++----------- wichtel_matcher2.py | 8 ++++---- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/participants.csv b/participants.csv index 6b3e7fe..4249ea2 100644 --- a/participants.csv +++ b/participants.csv @@ -1,12 +1,13 @@ id,name,household,email,last_match_id -0,Lukas,Martin,contact@lukasmartin.eu,10 -1,Jan,Martin,lukas.martin155@outlook.de,4 -2,Ulrike,Martin,Null,7 -3,Petra,Scheib,Null,0 -4,Dietmar,Scheib,Null,9 -5,Lisa,Scheib,Null,1 -6,Andreas,Scheib,Null,8 -7,Mara,Scheib,Null,2 -8,Annette,Simon,Null,6 -9,Julia,Simon,Null,5 -10,Marc,Simon,Null,3 +0,Lukas,Martin,Null,3 +1,Jan,Martin,Null,5 +2,Ulrike,Martin,Null,8 +3,Petra,Scheib,Null,10 +4,Dietmar,Scheib,Null,11 +5,Lisa,Scheib,Null,0 +6,Andreas,Scheib,Null,1 +7,Mara,Scheib,Null,9 +8,Annette,Sans,Null,7 +9,Julia,Sans,Null,4 +10,Marc,Sans,Null,6 +11,Michael,Sans,Null,2 diff --git a/wichtel_matcher2.py b/wichtel_matcher2.py index 43c2546..d2b65de 100644 --- a/wichtel_matcher2.py +++ b/wichtel_matcher2.py @@ -115,13 +115,13 @@ def send_emails(matches, participants, sender_email, smtp_server, smtp_port, log giver = next(p for p in participants if p['id'] == giver_id) # Compose email - subject = "Dein Wichtel-Match für dieses Jahr" + subject = "Dein Wichtel-Match für Weihnachten 2025" message = ( f"Hallo liebe/r {giver['name']},\n\n" f"Dein Match für das diesjährige Wichteln ist {receiver['name']}.\n\n" - "Mit freundlichen Grüßen,\n" - "Dein Wichtelsystem\n\n" - "--Bitte beachtet, dass ungefähr für 25€ gewichtelt wird--" + "Grüße,\n" + "Das Wichtelsystem\n\n" + "--Bitte beachtet, dass für ungefähr 25€ gewichtelt wird--" ) # Prepare email