Private
Public Access
1
0

racesviews

This commit is contained in:
Sander Roosendaal
2020-06-01 08:30:18 +02:00
parent 85f3dd4858
commit 0fe25f7cc5
2 changed files with 133 additions and 133 deletions

View File

@@ -67,13 +67,13 @@ def get_token(code):
'Content-Type': 'application/x-www-form-urlencoded',
}
try:
response = requests.post(
"https://oauth.trainingpeaks.com/oauth/token",
try:
response = requests.post(
"https://oauth.trainingpeaks.com/oauth/token",
data=post_data
)
except:
return 0,0,0
)
except:
return 0,0,0
try: