Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SZonkil committed Dec 6, 2023
1 parent 46edff4 commit 658dbc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions oioioi/programs/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,9 +695,9 @@ def add_result_percentage(env, **kwargs):
return env

for test_name, test_result in env['test_results'].items():
if (test_result['result_percentage'] == 100
or test_result['result_percentage'] == 0):
percentage = test_result.get('result_percentage', 0)
if percentage == 100 or percentage == 0:
continue
test_result['result_string'] = _("Granted %d%% points, comment") % test_result['result_percentage'] + \
test_result['result_string'] = _("Granted %d%% points, comment") % percentage + \
': ' + test_result['result_string']
return env

0 comments on commit 658dbc4

Please sign in to comment.