mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 06:54:44 +00:00
a
This commit is contained in:
parent
9824f9349d
commit
376ea248a4
@ -3,7 +3,7 @@ def req_event_matches(eventkey,apikey):
|
|||||||
headers={'X-TBA-Auth-Key':apikey}
|
headers={'X-TBA-Auth-Key':apikey}
|
||||||
r=requests.get('https://www.thebluealliance.com/api/v3/event/'+eventkey+'/matches/simple', headers=headers)
|
r=requests.get('https://www.thebluealliance.com/api/v3/event/'+eventkey+'/matches/simple', headers=headers)
|
||||||
return r
|
return r
|
||||||
def sort_through_request(request):
|
def get_match_data(request):
|
||||||
if request.status_code == 200:
|
if request.status_code == 200:
|
||||||
x=[]
|
x=[]
|
||||||
for i in sorted(request.json(), key=lambda i: i['actual_time']):
|
for i in sorted(request.json(), key=lambda i: i['actual_time']):
|
||||||
|
Loading…
Reference in New Issue
Block a user