-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes in MPContestController #153
Conversation
geoff128
commented
Mar 7, 2023
- There was an error when participant tried to access contest with problem with no round
- Scores were not visible on problems list
It would be nice if the ranking had the usual colors. I think they are missing because of the non-integer scores, which in my humble opinion are not needed. |
oioioi/mp/controllers.py
Outdated
) | ||
except SubmissionReport.DoesNotExist: | ||
report = None | ||
|
||
result.score = best_submission[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to change typo of best_submission from tuple to normal variable and use following logic
- best_submission (currently best submission)
- add new variable best_submission_score (initially None, currently best score)
This would make this part of the code much more readable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes looks good, but could you improve a little bit readability of update_user_result_for_problem
?
@geoff128 Could You please try to look into this by EOY? |