#NEWLINE# def fill_with_users( items ) : #NEWLINE# #INDENT# uids = set ( map ( ( lambda o : o . account_id ) , items ) ) #NEWLINE# users = Account . query . filter_in ( Account . id , uids ) #NEWLINE# items = map ( ( lambda o : _attach_user ( o , users . get ( o . account_id ) ) ) , items ) #NEWLINE# return items