Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Don't rate contests which have not finished yet #1591

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

Ninjaclasher
Copy link
Member

Fixes #1590.

After this commit, contests which have not ended cannot be rated. We should probably make sure there isn't a case where someone might want to rate an ongoing contest.

On a side note, should we hide (or maybe grey out) the Rate button if the contest has not ended yet? It might be confusing if clicking the rate button does nothing for an ongoing contest.

Copy link
Member

@kiritofeng kiritofeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Xyene Xyene merged commit 3a7c480 into DMOJ:master Feb 12, 2021
@Xyene
Copy link
Member

Xyene commented Feb 12, 2021

Thanks!

@Ninjaclasher Ninjaclasher deleted the rating-fix branch February 25, 2021 04:51
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disqualifying ContestPartipation rates all ongoing rated contests
4 participants