#NEWLINE# def get_payment_instruction( self , team ) : #NEWLINE# #INDENT# 'Given a slug, returns a dict.\n        ' #NEWLINE# if ( not isinstance ( team , Team ) ) : #NEWLINE# #INDENT# ( team , slug ) = ( Team . from_slug ( team ) , team ) #NEWLINE# if ( not team ) : #NEWLINE# #INDENT# raise NoTeam ( slug ) #NEWLINE# #UNINDENT# #UNINDENT# default = dict ( amount = Decimal ( '0.00' ) , is_funded = False ) #NEWLINE# return self . db . one ( '\n            SELECT *\n              FROM payment_instructions\n             WHERE participant=%s\n               AND team=%s\n          ORDER BY mtime DESC\n             LIMIT 1\n\n        ' , ( self . username , team . slug ) , back_as = dict , default = team )