Handle orders pool with zero orders
This commit is contained in:
parent
d9b7a1207b
commit
257461307e
1 changed files with 3 additions and 0 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue