improvements to perf manager chart and making sure tss and trimp are calculated always
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user