Private
Public Access
1
0

fixing tests

This commit is contained in:
Sander Roosendaal
2018-11-14 22:24:26 +01:00
parent 398f083e81
commit 72fab9f5e2
2 changed files with 16 additions and 13 deletions

View File

@@ -684,9 +684,12 @@ def process_callback(request):
# Uploading workout
def workout_c2_upload(user,w):
message = 'trying C2 upload'
if mytypes.c2mapping[w.workouttype] is None:
try:
if mytypes.c2mapping[w.workouttype] is None:
return "This workout type cannot be uploaded to Concept2",0
except KeyError:
return "This workout type cannot be uploaded to Concept2",0
thetoken = c2_open(user)
r = Rower.objects.get(user=user)