示例#1
0
    def can_publish_grades(self):
        from evap.results.tools import get_sum_of_answer_counters
        if self.is_single_result:
            return get_sum_of_answer_counters(self.ratinganswer_counters) > 0

        return self.num_voters >= settings.MIN_ANSWER_COUNT and float(
            self.num_voters
        ) / self.num_participants >= settings.MIN_ANSWER_PERCENTAGE
示例#2
0
    def can_publish_grades(self):
        from evap.results.tools import get_sum_of_answer_counters
        if self.is_single_result:
            return get_sum_of_answer_counters(self.ratinganswer_counters) > 0

        return self.num_voters >= settings.MIN_ANSWER_COUNT and float(self.num_voters) / self.num_participants >= settings.MIN_ANSWER_PERCENTAGE