mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2026-10-12 05:08:31 +00:00
a
This commit is contained in:
1 parent
9824f9349d
commit
376ea248a4
1 file changed
+1
-1
@@ -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']):
|
||||||
|
|||||||
Reference in new issue
Block a user