We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dff252 commit 8f438c9Copy full SHA for 8f438c9
1 file changed
domain_model.py
@@ -12,7 +12,8 @@ def allocate_to(order, source):
12
return {
13
sku: source
14
for sku, quantity in order.items()
15
- if source.get(sku, 0) > quantity
+ if sku in source
16
+ and source[sku] > quantity
17
}
18
19
0 commit comments