Skip to content

Commit

Permalink
make prefix optional
Browse files Browse the repository at this point in the history
  • Loading branch information
leduythuccs committed Dec 10, 2024
1 parent ba417b9 commit 5e640b9
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 @@ -62,7 +62,7 @@ class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument('input', help='csv file containing username and teamname')
parser.add_argument('output', help='where to store output csv file')
parser.add_argument('prefix', help='prefix for username')
parser.add_argument('prefix', help='prefix for username', type=str, nargs='?', default='')

def handle(self, *args, **options):
fin = open(options['input'], 'r', encoding='utf-8')
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 @@ -46,7 +46,7 @@ class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument('input', help='csv file containing username and teamname')
parser.add_argument('output', help='where to store output csv file')
parser.add_argument('prefix', help='prefix for username')
parser.add_argument('prefix', help='prefix for username', type=str, nargs='?', default='')

def handle(self, *args, **options):
fin = open(options['input'], 'r', encoding='utf-8')
Expand Down

0 comments on commit 5e640b9

Please sign in to comment.