corrected incorrect tabs
This commit is contained in:
@@ -130,8 +130,8 @@ def handle_c2_import_stroke_data(c2token,
|
||||
|
||||
authorizationstring = str('Bearer ' + c2token)
|
||||
headers = {'Authorization': authorizationstring,
|
||||
'user-agent': 'sanderroosendaal',
|
||||
'Content-Type': 'application/json'}
|
||||
'user-agent': 'sanderroosendaal',
|
||||
'Content-Type': 'application/json'}
|
||||
url = "https://log.concept2.com/api/users/me/results/"+str(c2id)+"/strokes"
|
||||
s = requests.get(url,headers=headers)
|
||||
if s.status_code == 200:
|
||||
@@ -191,10 +191,10 @@ def getagegrouprecord(age,sex='male',weightcategory='hwt',
|
||||
distance=2000,duration=None,indf=pd.DataFrame()):
|
||||
|
||||
if not duration:
|
||||
try:
|
||||
df = indf[indf['distance'] == distance]
|
||||
except KeyError:
|
||||
df = pd.DataFrame()
|
||||
try:
|
||||
df = indf[indf['distance'] == distance]
|
||||
except KeyError:
|
||||
df = pd.DataFrame()
|
||||
else:
|
||||
duration = 60*int(duration)
|
||||
df = indf[indf['duration'] == duration]
|
||||
|
||||
Reference in New Issue
Block a user