diff --git a/ch04/app.py b/ch04/app.py index fe120fd..35b4471 100644 --- a/ch04/app.py +++ b/ch04/app.py @@ -10,7 +10,7 @@ def get_orders_by_customer(cust_name, shipped=None, details=False): dal.line_items.c.quantity, dal.line_items.c.extended_cost]) joins = joins.join(dal.line_items).join(dal.cookies) - cust_orders = select(columns) + cust_orders = select(*columns) cust_orders = cust_orders.select_from(joins).where( dal.users.c.username == cust_name) if shipped is not None: