#NEWLINE# @ require_permission ( 'view_query' ) #NEWLINE# def get( self , query_id ) : #NEWLINE# #INDENT# q = get_object_or_404 ( models . Query . get_by_id_and_org , query_id , self . current_org ) #NEWLINE# require_access ( q . groups , self . current_user , view_only ) #NEWLINE# if q : #NEWLINE# #INDENT# return q . to_dict ( with_visualizations = True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# abort ( 404 , message = 'Query not found.' )