Fix: Error is checking length of bills
This commit is contained in:
parent
f1d145e76f
commit
f6deea265c
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user