Example #1
0
def handle_vote(vote):
    #log.debug("Post-processing vote: %s" % vote)
    if Tally.find_by_vote(vote) is None:
        tally = Tally.create_from_vote(vote)
        meta.Session.commit()
        log.debug("Tallied %s: %s" % (vote.poll, tally))
Example #2
0
def handle_vote(vote):
    #log.debug("Post-processing vote: %s" % vote)
    if Tally.find_by_vote(vote) is None:
        tally = Tally.create_from_vote(vote)
        log.debug("Tallied %s: %s" % (vote.poll, tally))