Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hieplpvip committed Nov 30, 2023
1 parent f92a3f7 commit 9f8fe10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
5 changes: 2 additions & 3 deletions judge/utils/problem_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ def make_grader(init, case):
end_batch()
if case.points is None:
raise ProblemDataError(_('Batch start case #%d requires points.') % i)
if case.points is not None:
total_point += case.points
total_point += case.points
batch = {
'points': case.points,
'batched': [],
Expand Down Expand Up @@ -295,7 +294,7 @@ def make_grader(init, case):
end_batch()
batch = None
if total_point <= 0:
raise ProblemDataError(_('Total Points must be greater than 0'))
raise ProblemDataError(_('Total points must be greater than 0.'))
if batch:
end_batch()

Expand Down
7 changes: 1 addition & 6 deletions locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -3269,14 +3269,9 @@ msgstr ""
msgid "Batch start case #%d requires points."
msgstr ""

#: judge/utils/problem_data.py:287
#, python-format
msgid "Attempt to end batch outside of one in case #%d"
msgstr ""

#: judge/utils/problem_data.py:297
#, python-format
msgid "Total Points must be greater than 0"
msgid "Attempt to end batch outside of one in case #%d"
msgstr ""

#: judge/utils/problem_data.py:315
Expand Down
4 changes: 2 additions & 2 deletions locale/vi/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -3398,8 +3398,8 @@ msgstr "Kết thúc nhóm nhưng không có bắt đầu ở case #%d"

#: judge/utils/problem_data.py:297
#, python-format
msgid "Total Points must be greater than 0"
msgstr "Tổng điểm của các test phải lớn hơn 0"
msgid "Total points must be greater than 0."
msgstr "Tổng điểm của các test phải lớn hơn 0."

#: judge/utils/problem_data.py:301
msgid "How did you corrupt the zip path?"
Expand Down

0 comments on commit 9f8fe10

Please sign in to comment.