Skip to content

Commit

Permalink
lowercase account gen
Browse files Browse the repository at this point in the history
  • Loading branch information
leduythuccs committed Dec 10, 2024
1 parent d888a77 commit ba417b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion judge/management/commands/batch_add_icpc_team.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def handle(self, *args, **options):
has_group = 'group' in reader.fieldnames

for cnt, row in enumerate(reader, start=1):
username = f'{prefix}{cnt}'
username = f'{prefix}{cnt}'.lower()
teamname = row['name']
org = get_org(row['instName'])
password = generate_password()
Expand Down
2 changes: 1 addition & 1 deletion judge/management/commands/batch_add_olp.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def handle(self, *args, **options):
for row in reader:
username = row['username']

username = f'{prefix}{username}'
username = f'{prefix}{username}'.lower()
fullname = row['name']
org = get_org(row['org'])
password = generate_password()
Expand Down

0 comments on commit ba417b9

Please sign in to comment.