Private
Public Access
1
0

fixing some tests

This commit is contained in:
Sander Roosendaal
2021-03-01 09:43:08 +01:00
parent f8b52d5799
commit 149b51960e
30 changed files with 4 additions and 3 deletions

View File

@@ -188,6 +188,7 @@ def set_strava_athlete_id(user):
# Get list of workouts available on Strava
def get_strava_workout_list(user,limit_n=0):
r = Rower.objects.get(user=user)
if (r.stravatoken == '') or (r.stravatoken is None):
s = "Token doesn't exist. Need to authorize"
return custom_exception_handler(401,s)