Skip to content

Commit 0d62cb0

Browse files
committed
import-script: Upload problemset by default if it exists.
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.
1 parent f30e6d3 commit 0d62cb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc-tools/import-contest.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def import_contest_problemset_document(cid: str):
126126
break
127127

128128
if text_file:
129-
if dj_utils.confirm(f'Import {text_file} for contest?', False):
129+
if dj_utils.confirm(f'Import {text_file} for contest?', True):
130130
dj_utils.upload_file(f'contests/{cid}/problemset', 'problemset', text_file)
131131
print('Contest problemset imported.')
132132
else:

0 commit comments

Comments
 (0)