Handle orders pool with zero orders

This commit is contained in:
Johnny Gear 2026-03-07 17:43:45 -06:00
parent d9b7a1207b
commit 257461307e

View file

@ -32,6 +32,9 @@ def read_config():
return orders return orders
def generate_order(orders_pool): def generate_order(orders_pool):
if len(orders_pool.orders) == 0:
return { }
# Do we want to repeat? # Do we want to repeat?
if orders_pool.repeat.count() != 0: if orders_pool.repeat.count() != 0:
repeat = orders_pool.repeat.get() repeat = orders_pool.repeat.get()