From 0d62cb0aaa08d7c6639232653cd71f13a3ab1c68 Mon Sep 17 00:00:00 2001 From: Tobias Werth Date: Tue, 17 Sep 2024 16:31:38 +0200 Subject: [PATCH] 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. --- misc-tools/import-contest.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-tools/import-contest.in b/misc-tools/import-contest.in index fbf080b5f5..58652e7704 100755 --- a/misc-tools/import-contest.in +++ b/misc-tools/import-contest.in @@ -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: