additional tests defined
This commit is contained in:
@@ -11812,6 +11812,14 @@ def workout_getimportview(request,externalid,source = 'c2'):
|
||||
|
||||
|
||||
# Now works only for C2
|
||||
try:
|
||||
if strokedata == 0:
|
||||
messages.error(request,'An error occurred importing the workout from Concept2')
|
||||
url = reverse(workouts_view)
|
||||
return HttpResponseRedirect(url)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
if strokedata.empty:
|
||||
distance = data['distance']
|
||||
c2id = data['id']
|
||||
|
||||
Reference in New Issue
Block a user