def update_vote_lookups(user, thing, direction):
 key = prequeued_vote_key(user, thing)
 grace_period = int(g.vote_queue_grace_period.total_seconds())
 direction = Vote.serialize_direction(direction)
 g.gencache.set(key, direction, time=(grace_period + 1))
 rel_cls = VotesByAccount.rel(thing.__class__)
 LastModified.touch(user._fullname, rel_cls._last_modified_name)

def update_vote_lookups ( user , thing , direction ) : key = prequeued_vote_key ( user , thing ) grace_period = int ( g . vote_queue_grace_period . total_seconds ( ) ) direction = Vote . serialize_direction ( direction ) g . gencache . set ( key , direction , time = ( grace_period + 1 ) ) rel_cls = VotesByAccount . rel ( thing . __class__ ) LastModified . touch ( user . _fullname , rel_cls . _last_modified_name )
store info about the existence of this vote .