fix yet another bug

This commit is contained in:
Jan Grewe 2019-08-21 23:55:00 +02:00
parent 5c8a483a96
commit e7e99d3753

View File

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