Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-07-15 22:18:54 +02:00
parent fbf364b53e
commit ed9b7cd05e

View File

@@ -151,7 +151,7 @@ def set_strava_athlete_id(user):
return custom_exception_handler(401,s) return custom_exception_handler(401,s)
elif (r.stravatokenexpirydate is None or timezone.now()+timedelta(seconds=3599)>r.stravatokenexpirydate): elif (r.stravatokenexpirydate is None or timezone.now()+timedelta(seconds=3599)>r.stravatokenexpirydate):
token = imports_open(user,oauth_data) token = imports_open(user,oauth_data)
else:
authorizationstring = str('Bearer ' + r.stravatoken) authorizationstring = str('Bearer ' + r.stravatoken)
headers = {'Authorization': authorizationstring, headers = {'Authorization': authorizationstring,
'user-agent': 'sanderroosendaal', 'user-agent': 'sanderroosendaal',