Skip to content

Commit

Permalink
Fix custom tests_file_suffix in ContestHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Jatana committed Oct 19, 2020
1 parent 2881880 commit 9746f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ContestHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def init_problems(self, handler, contest_id, base, pid='A'):
'test': inputs[i],
'correct_answers': [outputs[i]]
})
file = open(file_name + TestManagerCommand.TESTS_FILE_SUFFIX, 'w')
file = open(file_name + (get_settings().get('tests_file_suffix') or TestManagerCommand.TESTS_FILE_SUFFIX), 'w')
file.write(sublime.encode_value(tests, True))
file.close()
def go(self=self, handler=handler, contest_id=contest_id, base=base, pid=self.next_problem(pid)):
Expand Down

0 comments on commit 9746f2a

Please # to comment.