Skip to content

Commit

Permalink
Update nicknames up to FRC8893
Browse files Browse the repository at this point in the history
  • Loading branch information
will-hou committed Jan 6, 2022
1 parent b3ee24c commit 0b740bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nicknames.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def strip_empty_metrics(json_data):
# Generates a json file with keys corresponding to the team number and values corresponding to the team's nickname
def generate_team_json():
nickname_map = {}
for i in range(0, 17):
# Captures team #s up to 8999
for i in range(0, 18):
teams = requests.get('https://www.thebluealliance.com/api/v3/teams/{}/simple'.format(i), params={
'X-TBA-Auth-Key': 'KuyisSfG5mADtkhd2h0ebKbiCtE40vqwN5fX6voJq8i4IYr9STai3PpqLHT1z3kR'}).json()
for team in teams:
Expand Down

0 comments on commit 0b740bb

Please sign in to comment.