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"]