Private
Public Access
1
0

improvements to perf manager chart and making sure tss and trimp are calculated always

This commit is contained in:
Sander Roosendaal
2020-11-30 18:27:49 +01:00
parent a3378a3386
commit 7ccc7f109b
6 changed files with 23 additions and 12 deletions

View File

@@ -308,7 +308,10 @@ def getagegrouprecord(age,sex='male',weightcategory='hwt',
df = pd.DataFrame()
else:
duration = 60*int(duration)
df = indf[indf['duration'] == duration]
try:
df = indf[indf['duration'] == duration]
except KeyError:
df = pd.DataFrame()
if not df.empty:
ages = df['age']
@@ -3064,8 +3067,6 @@ def fetch_strava_workout(stravatoken,oauth_data,stravaid,csvfilename,userid,debu
'stravaid':stravaid,
}
print(uploadoptions)
session = requests.session()
newHeaders = {'Content-type': 'application/json', 'Accept': 'text/plain'}
session.headers.update(newHeaders)