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

Revert "Replace join text with spectate if user is finished contest; fixes #544" #1473

Merged

Conversation

Ninjaclasher
Copy link
Member

Reverts #1272.

As stated in #544 (comment), the change from #1272 does not fix #544. In fact, this code is never true, since if not request.in_contest, then contest.is_in_contest(request.user) is false.

Thus, we revert that commit to reduce dead code.

@codecov-commenter
Copy link

Codecov Report

Merging #1473 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1473   +/-   ##
=======================================
  Coverage   45.85%   45.85%           
=======================================
  Files         208      208           
  Lines       11991    11991           
=======================================
  Hits         5498     5498           
  Misses       6493     6493           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c3723a3...b3a1593. Read the comment docs.

@quantum5 quantum5 merged commit 9858c8b into DMOJ:master Jul 1, 2020
@Ninjaclasher Ninjaclasher deleted the revert-1272-change-join-btn-to-spec branch July 1, 2020 01:53
outloudvi pushed a commit to SchOJ/site that referenced this pull request Oct 27, 2020
malbareda pushed a commit to malbareda/JOEL-web that referenced this pull request Jan 4, 2024
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.

Contest listing displays "Join" where it should say "Spectate"
4 participants