Private
Public Access
1
0

additional tests defined

This commit is contained in:
Sander Roosendaal
2019-01-02 23:54:37 +01:00
parent 76d2325797
commit 670d2fc722
8 changed files with 1625 additions and 1438 deletions

View File

@@ -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']