def update_delegation(delegation): for poll in Poll.within_scope(delegation.scope): tally = Tally.create_from_poll(poll) meta.Session.commit() log.debug("Tallied %s: %s" % (poll, tally))
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))
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))