#NEWLINE# @ require_permission ( 'view_query' ) #NEWLINE# def get( self ) : #NEWLINE# #INDENT# term = request . args . get ( 'q' , '' ) #NEWLINE# return [ q . to_dict ( ) for q in models . Query . search ( term , self . current_user . groups ) ]