def create_vote(vote_dict, cutoff):
    '\n    changes the vote to the [-1, 1] range\n    '
    modified_vote = (1 if (float(vote_dict['vote']) > cutoff) else (- 1))
    return Vote(user=str(vote_dict['user']), post=str(vote_dict['post']), vote=modified_vote)
changes the vote to the [-1, 1] range
def create_vote(vote_dict, cutoff):
    '\n    \n    '
    modified_vote = (1 if (float(vote_dict['vote']) > cutoff) else (- 1))
    return Vote(user=str(vote_dict['user']), post=str(vote_dict['post']), vote=modified_vote)