Beispiel #1
0
 def can_see_publicsolutions(self, request, round):
     if all_non_trial_public_results_visible(request):
         # Do not show solutions for trial rounds that has future
         # publication date (e.g. not set).
         return self.get_round_times(request, round). \
                 public_results_visible(request.timestamp)
     return False
Beispiel #2
0
 def can_see_publicsolutions(self, request, round):
     if all_non_trial_public_results_visible(request):
         # Do not show solutions for trial rounds that has future
         # publication date (e.g. not set).
         return self.get_round_times(request, round). \
                 public_results_visible(request.timestamp)
     return False