correction for None notes everywhere
This commit is contained in:
@@ -242,6 +242,10 @@ def createc2workoutdata_as_splits(w):
|
||||
except ValueError:
|
||||
durationstr = datetime.strptime(str(w.duration),"%H:%M:%S")
|
||||
|
||||
try:
|
||||
newnotes = w.notes+'\n from '+w.workoutsource+' via rowsandall.com'
|
||||
except TypeError:
|
||||
newnotes = 'from '+w.workoutsource+' via rowsandall.com'
|
||||
|
||||
data = {
|
||||
"type": w.workouttype,
|
||||
@@ -250,7 +254,7 @@ def createc2workoutdata_as_splits(w):
|
||||
"time": int(10*makeseconds(durationstr)),
|
||||
"timezone": "Etc/UTC",
|
||||
"weight_class": c2wc(w.weightcategory),
|
||||
"comments": w.notes+'\n from '+w.workoutsource+' via rowsandall.com',
|
||||
"comments": newnotes,
|
||||
"heart_rate": {
|
||||
"average": averagehr,
|
||||
"max": maxhr,
|
||||
|
||||
Reference in New Issue
Block a user