#NEWLINE# def query( self , login_name ) : #NEWLINE# #INDENT# kwargs = { #NEWLINE# #INDENT# 'login' : login_name , #NEWLINE# #UNINDENT# } #NEWLINE# if ( self . access_level_name is not None ) : #NEWLINE# #INDENT# lt = db . session . query ( LearningTool ) . filter_by ( id = self . lt_value ) . first ( ) #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'lt' : lt , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return db . session . query ( self . db_model_user ) . filter_by ( ** kwargs ) . first ( )