Private
Public Access
1
0

v2/file now works

This commit is contained in:
Sander Roosendaal
2022-08-17 02:09:22 +02:00
parent ef1722f963
commit a7773a6f4a
3 changed files with 18 additions and 7 deletions

View File

@@ -1,4 +1,7 @@
from rowsandall_app.settings import NK_OAUTH_LOCATION, ROJABO_OAUTH_LOCATION
from rowsandall_app.settings import (
NK_OAUTH_LOCATION, ROJABO_OAUTH_LOCATION,
TP_OAUTH_LOCATION,
)
from rowers.views.statements import *
from rowers.plannedsessions import get_dates_timeperiod
@@ -295,7 +298,7 @@ def rower_tp_authorize(request): # pragma: no cover
"redirect_uri": TP_REDIRECT_URI,
"scope": "file:write",
}
url = "https://oauth.trainingpeaks.com/oauth/authorize/?" + \
url = TP_OAUTH_LOCATION+"oauth/authorize/?" + \
urllib.parse.urlencode(params)
return HttpResponseRedirect(url)