From f6deea265cf0669052dc7e1aeb68a7f0649ba970 Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Sun, 19 Mar 2023 23:08:14 +0530 Subject: [PATCH] Fix: Error is checking length of bills --- barker/barker/printing/bill.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barker/barker/printing/bill.py b/barker/barker/printing/bill.py index db54d6b..765796d 100644 --- a/barker/barker/printing/bill.py +++ b/barker/barker/printing/bill.py @@ -47,7 +47,7 @@ def print_bill(voucher_id: uuid.UUID, db: Session): loop = asyncio.new_event_loop() redis: ArqRedis = loop.run_until_complete(create_pool(redis_settings)) - if len(bills > 1): + if len(bills) > 1: total = design_total(voucher, regimes, db) loop.run_until_complete( redis.enqueue_job(