Skip to content

Commit 86459ce

Browse files
committed
tweak if
1 parent 9b844ea commit 86459ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎domain_model.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ def allocate_to_shipments(line, shipments):
3333
def allocate(order, stock, shipments):
3434
for line in order:
3535
allocate_to_stock(line, stock)
36-
if not line.allocation:
36+
if line.allocation is None:
3737
allocate_to_shipments(line, shipments)
3838

0 commit comments

Comments
 (0)