#NEWLINE# def GetByID( self , ID ) : #NEWLINE# #INDENT# model_obj = None #NEWLINE# try : #NEWLINE# #INDENT# ID = int ( self ) #NEWLINE# model_obj = self . db . session . query ( models . Transaction ) . get ( ID ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# return model_obj