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()
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()
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()
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()