Skip to content

Commit

Permalink
'setup_test_cases_content()' will work independant of 'problem.includ…
Browse files Browse the repository at this point in the history
…e_test_cases' in order to allow including the tes-cases without the need of save again the problem-data.
  • Loading branch information
FherStk committed Dec 24, 2023
1 parent 192711e commit 75a7381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge/models/problem_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def save(self, *args, **kwargs):
def setup_test_cases_content(self):
self.test_cases_content = ''

if self.problem.include_test_cases and self.zipfile:
if self.zipfile:
zip = ZipFile(self.zipfile)

content = []
Expand Down

0 comments on commit 75a7381

Please sign in to comment.