def can_see_submission_score(self, request, submission):
     return super(ScoresRevealContestControllerMixin, self) \
         .can_see_submission_score(request, submission) or \
         is_revealed(submission)
Exemplo n.º 2
0
 def reveal_display(self, instance):
     return is_revealed(instance)
Exemplo n.º 3
0
 def can_see_submission_score(self, request, submission):
     return super(ScoresRevealContestControllerMixin, self) \
         .can_see_submission_score(request, submission) or \
         is_revealed(submission)
Exemplo n.º 4
0
 def reveal_display(self, instance):
     return is_revealed(instance)
Exemplo n.º 5
0
 def get_visible_reports_kinds(self, request, submission):
     if is_revealed(submission) or \
             self.results_visible(request, submission):
         return ['USER_OUTS', 'INITIAL', 'NORMAL']
     else:
         return ['USER_OUTS', 'INITIAL']
Exemplo n.º 6
0
 def get_visible_reports_kinds(self, request, submission):
     if is_revealed(submission) or self.results_visible(request, submission):
         return ["USER_OUTS", "INITIAL", "NORMAL"]
     else:
         return ["USER_OUTS", "INITIAL"]
Exemplo n.º 7
0
 def get_visible_reports_kinds(self, request, submission):
     if is_revealed(submission) or \
             self.results_visible(request, submission):
         return ['USER_OUTS', 'INITIAL', 'NORMAL']
     else:
         return ['USER_OUTS', 'INITIAL']