get team nums at comp

Former-commit-id: 028f6f775d
This commit is contained in:
Dev Singh 2022-02-04 03:16:45 +00:00
parent c08d3d3ae7
commit c46e74036b
2 changed files with 6 additions and 12 deletions

View File

@ -18,7 +18,8 @@ sample_json = """
"tba":"",
"tra":{
"CLIENT_ID":"",
"CLIENT_SECRET":""
"CLIENT_SECRET":"",
"url": ""
}
},
"config-preference":"local",

View File

@ -51,17 +51,10 @@ def get_metrics_data_formatted(client, competition):
return out
def get_pit_data_formatted(client, competition):
db = client.data_scouting
mdata = db.teamlist.competition
x=mdata.find_one({"competition":competition}) # x should be a list of teams given the soecified competition
print(x)
out = {}
for i in x:
try:
out[int(i)] = get_team_pit_data(client, competition, int(i))
except:
pass
return out
x=requests.get("https://titanscouting.epochml.org/api/fetchAllTeamNicknamesAtCompetition?competition="+competition)
output = x.json()
data = output['data']
return list(data.keys())
def get_pit_variable_data(client, competition):
db = client.data_processing