Private
Public Access
1
0

trainingpeaks to production

This commit is contained in:
Sander Roosendaal
2017-05-08 18:10:18 +02:00
parent 4b80e30b74
commit 358782fc0f
5 changed files with 6 additions and 9 deletions

View File

@@ -1654,7 +1654,7 @@ def rower_tp_authorize(request):
"redirect_uri": TP_REDIRECT_URI,
"scope": "file:write",
}
url = "https://oauth.sandbox.trainingpeaks.com/oauth/authorize/?" +urllib.urlencode(params)
url = "https://oauth.trainingpeaks.com/oauth/authorize/?" +urllib.urlencode(params)
return HttpResponseRedirect(url)
@@ -5508,7 +5508,6 @@ def workout_getrunkeeperworkout_view(request,runkeeperid):
w = Workout.objects.get(id=id)
w.uploadedtorunkeeper=runkeeperid
thetoken = runkeeper_open(request.user)
w.runkeeperuri = runkeeperstuff.geturifromid(thetoken,runkeeperid)
w.save()
if message:
url = reverse(workout_edit_view,