Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-08-30 21:29:42 +02:00
parent 668debceee
commit d7d8495ab0

View File

@@ -1651,7 +1651,10 @@ def workout_getimportview(request,externalid,source = 'c2'):
strokedata = res[1]
data = res[0]
workouttype = mytypes.c2mappinginv[data['type']]
try:
workouttype = mytypes.c2mappinginv[data['type']]
except KeyError:
workouttype = 'rower'
# Now works only for C2