Skip to content

Commit

Permalink
batch icpc team
Browse files Browse the repository at this point in the history
  • Loading branch information
leduythuccs committed Oct 18, 2024
1 parent 74be67b commit 3e53101
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion judge/management/commands/batch_add_icpc_team.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def handle(self, *args, **options):
prefix = options['prefix']

reader = csv.DictReader(fin)
writer = csv.DictWriter(fout, fieldnames=['username', 'teamname', 'password', 'org', 'email'])
writer = csv.DictWriter(fout, fieldnames=['id', 'username', 'teamname', 'password', 'org', 'email'])
writer.writeheader()

done_team_ids = set()
Expand All @@ -98,6 +98,7 @@ def handle(self, *args, **options):
add_user(username, teamname, password, org, org_group, internalid)

writer.writerow({
'id': internalid,
'username': username,
'teamname': teamname,
'password': password,
Expand Down

0 comments on commit 3e53101

Please sign in to comment.