changing workout names if no name
This commit is contained in:
@@ -239,7 +239,7 @@ def create_async_workout(alldata,user,c2id):
|
||||
t = data['comments'].split('\n', 1)[0]
|
||||
title += t[:40]
|
||||
except:
|
||||
title = 'Imported'
|
||||
title = ''
|
||||
|
||||
weightcategory = 'hwt'
|
||||
if weightclass == "L":
|
||||
@@ -1152,7 +1152,7 @@ def add_workout_from_data(user,importid,data,strokedata,
|
||||
t = data['comments'].split('\n', 1)[0]
|
||||
title += t[:40]
|
||||
except:
|
||||
title = 'Imported'
|
||||
title = ''
|
||||
|
||||
try:
|
||||
comments = data['comments']
|
||||
|
||||
Reference in New Issue
Block a user