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

remove submit button from submission page if contest is archived #428

Merged
merged 4 commits into from
Nov 25, 2024

Conversation

Atanazyy
Copy link
Contributor

@Atanazyy Atanazyy commented Nov 25, 2024

Closes #324

twalen
twalen previously approved these changes Nov 25, 2024
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.

Look OK

@@ -614,6 +614,7 @@ def get_submission_message(request):
def is_contest_archived(request):
return (
hasattr(request, 'contest')
and hasattr(request.contest, 'is_archived')
Copy link
Contributor

Choose a reason for hiding this comment

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

and (request.contest is not None)

@Atanazyy Atanazyy merged commit 26d5da5 into sio2project:master Nov 25, 2024
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.

Submit button should be hidden in some cases
2 participants