From 4db26722a3de01bd1cef86659ed22752a80d985f Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Fri, 24 Mar 2023 08:43:54 +0530 Subject: [PATCH] Fix: Debugging was left in the report --- barker/barker/routers/reports/menu_engineering_report.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/barker/barker/routers/reports/menu_engineering_report.py b/barker/barker/routers/reports/menu_engineering_report.py index 2e05fa5..abb2f88 100644 --- a/barker/barker/routers/reports/menu_engineering_report.py +++ b/barker/barker/routers/reports/menu_engineering_report.py @@ -52,7 +52,7 @@ def menu_engineering_report(s: date, f: date, db: Session): ) day = func.date_trunc("day", Voucher.date - timedelta(minutes=settings.NEW_DAY_OFFSET_MINUTES)).label("day") - q = ( + list_ = db.execute( select( SaleCategory.name, MenuCategory.name, @@ -99,9 +99,7 @@ def menu_engineering_report(s: date, f: date, db: Session): ProductVersion.full_name, ) .order_by(SaleCategory.name, nulls_last(func.sum(Inventory.net).desc())) - ) - print(q) - list_ = db.execute(q).all() + ).all() info: list[MeItem] = [] sc_sales: Dict[str, Decimal] = {} sc_quantity: Dict[str, Decimal] = {}