Skip to content

Commit

Permalink
fix: get name from domjudge api
Browse files Browse the repository at this point in the history
Signed-off-by: Dup4 <lyuzhi.pan@gmail.com>
  • Loading branch information
Dup4 committed Jun 6, 2023
1 parent e69488b commit 604983d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xcpcio_board_spider/spider/domjudge/v3/domjudge.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ def parse_teams(self):
team = Team()

team_id = d_team["id"]
name = d_team["display_name"]

name = d_team["name"]
if d_team["display_name"] is not None:
name = d_team["display_name"]

organization = d_team["affiliation"]

team.team_id = team_id
Expand Down

0 comments on commit 604983d

Please sign in to comment.