Skip to content

Commit 5e8e3d7

Browse files
authored
Merge branch 'main' into jam-test
2 parents 6a68ccc + fe5487c commit 5e8e3d7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

src/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ def validorder(order: Order):
1212
net += item.amount
1313
elif item.type == "product":
1414
net -= item.amount * item.quantity
15+
elif item.type == "shipping":
16+
net -= item.amount
1517
else:
1618
return "Invalid item type: %s" % item.type
1719

0 commit comments

Comments
 (0)