v2/file now works
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user