Skip to content

Commit

Permalink
Fix incorrect count and price values introduced by 6ae6285
Browse files Browse the repository at this point in the history
  • Loading branch information
exflikt committed Oct 5, 2024
1 parent 6ae6285 commit 7d2fcc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/store/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class OrderSession:
def __init__(self):
self.products: dict[UUID, Product] = {}
self.counted_products: dict[int, OrderSession.CountedProduct] = {}
self.total_count: int = 1
self.total_price: int = 1
self.total_count: int = 0
self.total_price: int = 0

def clear(self):
self.total_count = 0
Expand Down

0 comments on commit 7d2fcc1

Please sign in to comment.