#NEWLINE# def filter( self , query , cycle = CURRENT_CYCLE , offset = 0 ) : #NEWLINE# #INDENT# 'Returns a list of candidates based on a search term' #NEWLINE# path = '/%s/candidates/search' #NEWLINE# result = self . fetch ( path , cycle , query = query , offset = offset , parse = ( lambda r : r [ 'results' ] ) ) #NEWLINE# return cycle