diff --git a/xcpcio_board_spider/spider/domjudge/v3/domjudge.py b/xcpcio_board_spider/spider/domjudge/v3/domjudge.py index 1377204..7afd1df 100644 --- a/xcpcio_board_spider/spider/domjudge/v3/domjudge.py +++ b/xcpcio_board_spider/spider/domjudge/v3/domjudge.py @@ -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