Private
Public Access
1
0

closing payments page for coaches

This commit is contained in:
Sander Roosendaal
2019-02-21 17:51:51 +01:00
parent 7fd8a110eb
commit e217446b31
28 changed files with 213 additions and 113 deletions

View File

@@ -291,7 +291,10 @@ def get_workout(user,stravaid):
workoutsummary = requests.get(url,headers=headers).json()
workoutsummary['timezone'] = "Etc/UTC"
startdatetime = workoutsummary['start_date']
try:
startdatetime = workoutsummary['start_date']
except KeyError:
startdatetime = timezone.now()
spmjson = get_strava_stream(r,'cadence',stravaid)
hrjson = get_strava_stream(r,'heartrate',stravaid)