def get_vote_dict_from_table(vote_from_query):
    """
    Returns a dict representation of a vote given a result from the table query
    :param vote_from_query: a signle result from a query to the votes table
    :return: dict representation of the vote
    """
    result = dict(
        topic=vote_from_query["Topic"],
        project_name=vote_from_query["ProjectName"],
        vote_count=int(vote_from_query["VoteCount"]),
        last_vote=vote_from_query["LastVote"],
    )

    if "VoteHidden" in vote_from_query:
        result["hidden"] = vote_from_query["VoteHidden"]

    return result