mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-13 22:56:18 +00:00
a
This commit is contained in:
parent
6e5b04b1f5
commit
9d834a64a6
@ -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