Skip to content
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

Merged
merged 17 commits into from
Dec 12, 2023
Merged

Fixes in MPContestController #153

merged 17 commits into from
Dec 12, 2023

Conversation

geoff128
Copy link
Contributor

@geoff128 geoff128 commented Mar 7, 2023

  1. There was an error when participant tried to access contest with problem with no round
  2. Scores were not visible on problems list

@geoff128 geoff128 requested a review from twalen as a code owner March 7, 2023 20:47
@otargowski
Copy link
Contributor

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.

)
except SubmissionReport.DoesNotExist:
report = None

result.score = best_submission[1]
Copy link
Contributor

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.

Copy link
Contributor

@twalen twalen left a 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?

@DietPawel
Copy link
Contributor

@geoff128 Could You please try to look into this by EOY?

@geoff128 geoff128 requested a review from twalen December 11, 2023 14:36
@geoff128 geoff128 merged commit b073c90 into sio2project:master Dec 12, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants