

def add_vote(self, vote_value):
    self.score += vote_value
    if (vote_value == 1):
        self.ups += 1
    elif (vote_value == (- 1)):
        self.downs += 1

dataset/ETHPy150Open Nikola-K/django_reddit/django_reddit/utils/model_utils.py ContentTypeAware.add_vote/original