bug fix
This commit is contained in:
@@ -1651,7 +1651,10 @@ def workout_getimportview(request,externalid,source = 'c2'):
|
|||||||
strokedata = res[1]
|
strokedata = res[1]
|
||||||
data = res[0]
|
data = res[0]
|
||||||
|
|
||||||
workouttype = mytypes.c2mappinginv[data['type']]
|
try:
|
||||||
|
workouttype = mytypes.c2mappinginv[data['type']]
|
||||||
|
except KeyError:
|
||||||
|
workouttype = 'rower'
|
||||||
|
|
||||||
|
|
||||||
# Now works only for C2
|
# Now works only for C2
|
||||||
|
|||||||
Reference in New Issue
Block a user