Skip to content

Commit 8f438c9

Browse files
committed
just made it even more readable. feeling pretty good rn
1 parent 4dff252 commit 8f438c9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

domain_model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ def allocate_to(order, source):
1212
return {
1313
sku: source
1414
for sku, quantity in order.items()
15-
if source.get(sku, 0) > quantity
15+
if sku in source
16+
and source[sku] > quantity
1617
}
1718

1819

0 commit comments

Comments
 (0)