VNOI-Admin / OJ

A modern open-source online judge and contest platform system.
https://oj.vnoi.info
GNU Affero General Public License v3.0
153 stars 67 forks source link

Use slowest run time for submission's time detail #353

Closed DuCanhGH closed 10 months ago

DuCanhGH commented 10 months ago

Description

This PR changes judge_submission.time from SUM(judge_submissiontestcase.time) to MAX(judge_submissiontestcase.time) as per requested.

What

It changes judge_handler.py so that it calculates max(case.time) instead of sum(case.time), and adds a data migration.

How to test this PR?

Manually run python3 manage.py migrate and recheck the data.

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

By submitting this pull request, I confirm that my contribution is made under the terms of the AGPL-3.0 License.