<s> from lib import action <EOL> class FindCardByNameAction ( action . BaseAction ) : <EOL> def run ( self , name , board_id , list_id , api_key = None , token = None ) : <EOL> if api_key : <EOL> self . _set_creds ( api_key = api_key , token = token ) <EOL> cards = [ ] <EOL> board = self . _client ( ) . get_board ( board_id ) <EOL> lst = board . get_list ( list_id ) <EOL> for card in lst . list_cards ( ) : <EOL> if card . name == name and not card . closed : <EOL> cards . append ( card . id ) <EOL> if len ( cards ) == <NUM_LIT:0> : <EOL> return False <EOL> else : <EOL> return cards </s>
