Skip to content

Commit

Permalink
import-script: Upload problemset by default if it exists.
Browse files Browse the repository at this point in the history
There is no reason why you wouldn't want to make the full problem text
available.

This is in line with other questions, so that you typically just have to
press Enter for the default option after doing an initial import.
  • Loading branch information
meisterT committed Sep 17, 2024
1 parent f30e6d3 commit 0d62cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc-tools/import-contest.in
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def import_contest_problemset_document(cid: str):
break

if text_file:
if dj_utils.confirm(f'Import {text_file} for contest?', False):
if dj_utils.confirm(f'Import {text_file} for contest?', True):
dj_utils.upload_file(f'contests/{cid}/problemset', 'problemset', text_file)
print('Contest problemset imported.')
else:
Expand Down

0 comments on commit 0d62cb0

Please sign in to comment.