@@ -23,7 +23,7 @@ def sendMail(pretix, pretalx, contactdata, dryrun, service):
2323 for address in [email ]:
2424 if address == "" :
2525 continue
26- print ("Address:" , address )
26+ print (f "Address: { author } < { email } >" )
2727 msg = MIMEMultipart ('alternative' )
2828 msg ['Subject' ] = 'Information regarding PyCon Sweden 2025'
2929 msg ['From' ] = f'{ my_email } '
@@ -32,12 +32,15 @@ def sendMail(pretix, pretalx, contactdata, dryrun, service):
3232 contact_name = contactdata ["name" ]
3333 contact_email = contactdata ["email" ]
3434 contact_mobile = contactdata ["mobile" ]
35+ print ("Subject:" , msg ['Subject' ])
3536
3637 contact_others = ""
3738 for k , v in contactdata ["others" ].items ():
3839 contact_others += f" * { k } : { v } \n "
3940
4041 msgPlain = f'''Hi { author } ,
42+
43+
4144* Your ticket for the conference: { promocode } .
4245
4346You can use the link below to enter the shop:
@@ -140,17 +143,19 @@ def sendMail(pretix, pretalx, contactdata, dryrun, service):
140143minutes.
141144
142145
143- * Halloween parthy
146+ * Halloween party
144147
145148This year we will have a mingle with Halloween themed party.
146- So bring your best costume and be scarry 🎃, and have fun.
149+ It will happen in a bar on Odenplan (reachable by subway)
150+ on Friday after the conference.
151+ So bring your best costume, be scarry 🎃, and have fun.
147152Admitance is free of charge for speakers.
148153
149154
150155Best Regards,
151156PyCon Sweden 2025 organization board
152157'''
153- msg ['Cc' ] = 'helio @pycon.se'
158+ msg ['Cc' ] = 'board @pycon.se'
154159 print (msgPlain )
155160 msg .attach (MIMEText (msgPlain , 'plain' ))
156161 raw = base64 .urlsafe_b64encode (msg .as_bytes ())
@@ -234,6 +239,8 @@ def get_contact(speakers_json: dict, speaker_name: str) -> dict|None:
234239 csvreader = csv .DictReader (csvfile )
235240 for row in csvreader :
236241 # Name,Role,Voucher,Link,Send,Redeem,,Name,Role,Voucher,Link
242+ if row ['Name' ] is None or len (row ['Name' ]) == 0 :
243+ continue
237244 data = get_contact (speakersJSON , row ['Name' ])
238245 if data is None :
239246 print (f"WARNING: { row ['Name' ]} not found" )
0 commit comments