From e26b407fa0bcdc44104179d18e07e97f55cfb071 Mon Sep 17 00:00:00 2001 From: Le Duy Thuc Date: Wed, 14 Dec 2022 11:40:03 +0000 Subject: [PATCH] Add export problem command --- judge/management/commands/export_problem.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/judge/management/commands/export_problem.py b/judge/management/commands/export_problem.py index 96aace2b1..36b0d57ce 100644 --- a/judge/management/commands/export_problem.py +++ b/judge/management/commands/export_problem.py @@ -24,7 +24,9 @@ def export_problem(code, export_code=None, prefix_name=''): 'time_limit': problem.time_limit, 'memory_limit': problem.memory_limit, 'short_circuit': problem.short_circuit, - 'allow_view_testcase_status': problem.allow_view_testcase_status, + 'submission_source_visibility_mode': problem.submission_source_visibility_mode, + 'testcase_visibility_mode': problem.testcase_visibility_mode, + 'testcase_result_visibility_mode': problem.testcase_result_visibility_mode, 'allow_view_feedback': problem.allow_view_feedback, 'points': problem.points, 'partial': problem.partial,