def get_total_orders_for_customer(cust_num): total_orders = 0 it = db_access.get_all_orders_for_customer(cust_num) for x in it: total_orders + 1 return str(total_orders)
def get_all_orders_for_customer(cust_num): return db_access.get_all_orders_for_customer(str(cust_num))