Skip to content

Commit

Permalink
import_polygon_package: compress test zip
Browse files Browse the repository at this point in the history
  • Loading branch information
hieplpvip committed Sep 23, 2023
1 parent 49b5b09 commit 47179ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge/management/commands/import_polygon_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def parse_tests(problem_meta, root, package):
'cases': [],
}

with zipfile.ZipFile(problem_meta['zipfile'], 'w') as tests_zip:
with zipfile.ZipFile(problem_meta['zipfile'], 'w', compression=zipfile.ZIP_DEFLATED, compresslevel=9) as tests_zip:
input_path_pattern = testset.find('input-path-pattern').text
answer_path_pattern = testset.find('answer-path-pattern').text
for i, test in enumerate(testset.find('tests').getchildren()):
Expand Down

0 comments on commit 47179ec

Please sign in to comment.