Private
Public Access
1
0

small strava sync correction

This commit is contained in:
Sander Roosendaal
2018-11-19 21:09:42 +01:00
parent 886b05fe8a
commit f155e9800c
2 changed files with 6 additions and 1 deletions

View File

@@ -590,6 +590,11 @@ def add_workout_from_data(user,importid,data,strokedata,
return id,message
def workout_strava_upload(user,w):
try:
thetoken = strava_open(user)
except NoTokenError:
return "Please connect to Strava first",0
message = "Uploading to Strava"
stravaid=-1
r = Rower.objects.get(user=user)