mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-26 17:49:09 +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}
|
||||
r=requests.get('https://www.thebluealliance.com/api/v3/event/'+eventkey+'/matches/simple', headers=headers)
|
||||
return r
|
||||
def sort_through_request(request):
|
||||
def get_match_data(request):
|
||||
if request.status_code == 200:
|
||||
x=[]
|
||||
for i in sorted(request.json(), key=lambda i: i['actual_time']):
|
||||
|
Loading…
Reference in New Issue
Block a user