From e7e99d3753a145aeb9333deac62aed1d10bffd55 Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Wed, 21 Aug 2019 23:55:00 +0200 Subject: [PATCH] fix yet another bug --- email_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/email_client.py b/email_client.py index f68db5f..3bf5052 100644 --- a/email_client.py +++ b/email_client.py @@ -147,7 +147,7 @@ class Participation(object): if not os.path.exists(PARTICIPANTS_FOLDER): os.mkdir(PARTICIPANTS_FOLDER) if not filename: - filename = os.path.join(PARTICIPANTS_FOLDER, "".join(p.name.split())) + ".csv" + filename = os.path.join(PARTICIPANTS_FOLDER, "".join(self.name.split())) + ".csv" header = ["LastName", "FirstName", "eMail", "Phone", "Institute", "Street", "City", "RegDate", "CareerStage", "Fee", "FarewellEvent", "GwinnerAward", "LabTour", "FoodVegetarian", "FoodVegan", "FoodGlutenFree", "FoodNoPref"]