#NEWLINE# @ with_session #NEWLINE# def quickadmin_uses_metadata( self , query_params ) : #NEWLINE# #INDENT# db_metadata_query = _current . session . query ( sqlalchemy . func . min ( model . DbUserUsedExperiment . start_date ) , sqlalchemy . func . max ( model . DbUserUsedExperiment . start_date ) , sqlalchemy . func . count ( model . DbUserUsedExperiment . id ) ) #NEWLINE# db_metadata_query = self . _apply_filters ( db_metadata_query , query_params ) #NEWLINE# first_element = db_metadata_query . first ( ) #NEWLINE# if query_params : #NEWLINE# #INDENT# ( min_date , max_date , count ) = first_element #NEWLINE# return dict ( min_date = min_date , max_date = max_date , count = count ) #NEWLINE# #UNINDENT# return dict ( min_date = datetime . datetime . utcnow ( ) , max_date = datetime . datetime . now ( ) , count = 0 )