changing workout names if no name
This commit is contained in:
@@ -325,7 +325,7 @@ def create_async_workout(alldata,user,stravaid,debug=False):
|
||||
t = data['comments'].split('\n', 1)[0]
|
||||
title += t[:20]
|
||||
except:
|
||||
title = 'Imported'
|
||||
title = ''
|
||||
|
||||
workoutdate = rowdatetime.astimezone(
|
||||
pytz.timezone(thetimezone)
|
||||
@@ -628,7 +628,7 @@ def add_workout_from_data(user,importid,data,strokedata,
|
||||
t = data['comments'].split('\n', 1)[0]
|
||||
title += t[:20]
|
||||
except:
|
||||
title = 'Imported'
|
||||
title = ''
|
||||
|
||||
starttimeunix = arrow.get(rowdatetime).timestamp
|
||||
|
||||
|
||||
Reference in New Issue
Block a user