Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2019-01-31 08:43:03 +01:00
parent 58d5df9bd3
commit 8bf9fcaa54
6 changed files with 118 additions and 3 deletions

View File

@@ -572,8 +572,10 @@ def get_workout(user,c2id):
if 'workout' in data:
if 'splits' in data['workout']:
splitdata = data['workout']['splits']
if 'intervals' in data['workout']:
elif 'intervals' in data['workout']:
splitdata = data['workout']['intervals']
else:
splitdata = None
# Check if workout has stroke data, and get the stroke data