From 0a0e21ae07cb99b3980b3bd3f745656ce0c23264 Mon Sep 17 00:00:00 2001 From: sanderroosendaal Date: Mon, 31 Oct 2016 16:31:54 +0100 Subject: [PATCH] If name is empty, name will be set to - imported through email - --- rowers/mailprocessing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rowers/mailprocessing.py b/rowers/mailprocessing.py index 3ebc1b06..32d24bdc 100644 --- a/rowers/mailprocessing.py +++ b/rowers/mailprocessing.py @@ -208,6 +208,8 @@ def make_new_workout_from_email(rr,f2,name,cntr=0): workoutstarttime = row.rowdatetime.strftime('%H:%M:%S') notes = 'imported through email' + if name == '': + name = 'imported through email' w = Workout(user=rr,name=name,date=workoutdate, workouttype=workouttype,