Exemplo n.º 1
0
    def refresh(self):
        num_funny_votes, percent_funny_votes = calculate_funny_votes(
            self.prompt)
        self.num_funny_votes = num_funny_votes
        self.percent_funny_votes = percent_funny_votes

        self.save()
Exemplo n.º 2
0
    def refresh(self):
        num_funny_votes, percent_funny_votes = calculate_funny_votes(self.response)
        self.num_funny_votes = num_funny_votes
        self.percent_funny_votes = percent_funny_votes

        num_votes, times_played, percent_votes = calculate_response_stats(self.response)
        self.num_votes = num_votes
        self.times_played = times_played
        self.percent_votes = percent_votes

        self.save()
Exemplo n.º 3
0
    def refresh(self):
        num_funny_votes, percent_funny_votes = calculate_funny_votes(
            self.response)
        self.num_funny_votes = num_funny_votes
        self.percent_funny_votes = percent_funny_votes

        num_votes, times_played, percent_votes = calculate_response_stats(
            self.response)
        self.num_votes = num_votes
        self.times_played = times_played
        self.percent_votes = percent_votes

        self.save()
Exemplo n.º 4
0
    def refresh(self):
        num_funny_votes, percent_funny_votes = calculate_funny_votes(self.prompt)
        self.num_funny_votes = num_funny_votes
        self.percent_funny_votes = percent_funny_votes

        self.save()