fixing tests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user