Fix: Error is checking length of bills

This commit is contained in:
Amritanshu Agrawal 2023-03-19 23:08:14 +05:30
parent f1d145e76f
commit f6deea265c
1 changed files with 1 additions and 1 deletions

View File

@ -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(