def _withdraw_funds(amount, person): """ Withdraws funds from person's account Args: amount: amount of money to deposit person: person that wants to transfer money""" Fund_Service.remove_funds(amount, person) withdrawal = Model.BankWithdrawals(person_id=person.id, amount=amount) Model.db.session.add(withdrawal) Model.db.session.commit()