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)

View File

@@ -294,7 +294,7 @@ def upload_options(body):
try:
for key, value in yml.iteritems():
lowkey = key.lower()
if lowkey == 'sync' or lowkey == 'synchronization':
if lowkey == 'sync' or lowkey == 'synchronization' or lowkey == 'export':
uploadoptions = getsyncoptions(uploadoptions,value)
if lowkey == 'chart' or lowkey == 'static' or lowkey == 'plot':
uploadoptions = getplotoptions(uploadoptions,value)