oioioi.scoresreveal.controllers
¶
Module Contents¶
Classes¶
ContestController mixin that sets up scoresreveal app. |
- class oioioi.scoresreveal.controllers.ScoresRevealContestControllerMixin[source]¶
Bases:
object
ContestController mixin that sets up scoresreveal app.
- is_score_ready_to_be_revealed(request, submission)[source]¶
Checks if given submission can be revealed, assuming that the reveals limit is not reached or submissions are revealed automatically.
Returns tuple (True, None) or (False, reason) where reason is a string containing the reason of denying access.
- can_reveal(request, submission)[source]¶
Checks if given submission can be manually revealed by provided request.
Returns tuple (True, None) or (False, reason) where reason is a string containing the reason of denying access.