@accounts.route('/account/transfer/delete/<transfer_id>')
@login_required
def delete_transfer(transfer_id):

    current_user_id = session.get('logged_in_user')
    accounts = Accounts(current_user_id)

    # is it valid?
    transfer = accounts.get_transfer(transfer_id)
    if transfer:
        # revert
        accounts.modify_account_balance(transfer.from_account, transfer.amount)
        accounts.modify_account_balance(transfer.to_account, -float(transfer.amount))

        accounts.delete_transfer(transfer_id)

        flash('Transfer deleted')
    else:
        flash('Not a valid account transfer', 'error')

    return redirect(url_for('accounts.show_transfers'))
Retrieves a file from an S3 Key
dataset/ETHPy150Open radekstepan/FlaskBudget/presenters/accounts.py/delete_transfer--crossover with--dataset/ETHPy150Open darcyliu/storyboard/boto/s3/key.py/Key.get_file