#NEWLINE# def delete_income( self , income_id ) : #NEWLINE# #INDENT# i = self . get_income ( income_id = income_id ) #NEWLINE# self . totals . update_income ( ( - float ( i . amount ) ) , i . date ) #NEWLINE# IncomeTable . query . filter ( ( IncomeTable . id == income_id ) ) . delete ( ) #NEWLINE# db_session . commit ( )