Skip to content

Commit

Permalink
fix: dummy team order
Browse files Browse the repository at this point in the history
  • Loading branch information
Dup4 committed May 29, 2022
1 parent 4ae16dd commit d025574
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dump/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,6 @@ def getGhostDATData(contest, teams_dict, submissions, problems_dict):
team_index = 1
team_index_dict = {}

if default_config.add_dummy_russian_team:
for i in range(need_dummy_teams):
dat_data += '@t {},0,1,Пополнить команду\n'.format(team_index)
team_index += 1

for id, team in teams_dict.items():
affiliation = team['affiliation']
name = team['name']
Expand All @@ -411,6 +406,11 @@ def getGhostDATData(contest, teams_dict, submissions, problems_dict):
dat_data += '@t {},0,1,{} {}{}\n'.format(
team_id, affiliation, '*' if isObservers(team) else '', name)

if default_config.add_dummy_russian_team:
for i in range(need_dummy_teams):
dat_data += '@t {},0,1,Пополнить команду\n'.format(team_index)
team_index += 1

teams_submit_index_dict = {}
for submission in submissions:
team_id = team_index_dict[submission['team_id']]
Expand Down

0 comments on commit d025574

Please sign in to comment.