#NEWLINE# @ require_permission ( 'view_query' ) #NEWLINE# def get( self ) : #NEWLINE# #INDENT# return [ q . to_dict ( with_stats = True ) for q in models . Query . all_queries ( self . current_user . groups ) ]