def fidelity_promo(order):
    return order.total() * .05 if order.customer.fidelity >= 1000 else 0
Set the current transaction on a request.
dataset/ETHPy150Open fluentpython/example-code/06-dp-1class-func/strategy_best.py/fidelity_promo--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/datastore/datastore_rpc.py/TransactionalConnection._set_request_transaction