mirror of
https://github.com/titanscouting/tra-superscript.git
synced 2024-12-28 10:39:09 +00:00
updates for 2023ilpe
This commit is contained in:
parent
11398290eb
commit
8e6c44db65
@ -75,7 +75,7 @@ def get_metrics_data_formatted(client, competition):
|
|||||||
return out
|
return out
|
||||||
|
|
||||||
def get_pit_data_formatted(client, competition):
|
def get_pit_data_formatted(client, competition):
|
||||||
x=requests.get("https://titanscouting.epochml.org/api/fetchAllTeamNicknamesAtCompetition?competition="+competition)
|
x=requests.get("https://scouting.titanrobotics2022.com/api/fetchAllTeamNicknamesAtCompetition?competition="+competition)
|
||||||
x = x.json()
|
x = x.json()
|
||||||
x = x['data']
|
x = x['data']
|
||||||
x = x.keys()
|
x = x.keys()
|
||||||
|
@ -2,7 +2,7 @@ import requests
|
|||||||
from exceptions import APIError
|
from exceptions import APIError
|
||||||
from dep import load_config
|
from dep import load_config
|
||||||
|
|
||||||
url = "https://titanscouting.epochml.org"
|
url = "https://scouting.titanrobotics2022.com"
|
||||||
config_tra = {}
|
config_tra = {}
|
||||||
load_config("config.json", config_tra)
|
load_config("config.json", config_tra)
|
||||||
trakey = config_tra['persistent']['key']['tra']
|
trakey = config_tra['persistent']['key']['tra']
|
||||||
@ -60,4 +60,4 @@ def get_teams_at_competition(competition):
|
|||||||
if json['success']:
|
if json['success']:
|
||||||
return list(json['data'].keys())
|
return list(json['data'].keys())
|
||||||
else:
|
else:
|
||||||
raise APIError(json)
|
raise APIError(json)
|
||||||
|
@ -12,4 +12,4 @@ requests
|
|||||||
scikit-learn
|
scikit-learn
|
||||||
scipy
|
scipy
|
||||||
six
|
six
|
||||||
tra-analysis
|
tra-analysis
|
||||||
|
Loading…
Reference in New Issue
Block a user