Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
taras-tkachuk committed Jun 1, 2024
1 parent 8453abd commit 1991b23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/shop.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def calculate_product_price(self, customer: Customer) -> float:
return full_price

def print_receipt(self, customer: Customer) -> None:
now = datetime.datetime.now()
print(f"Date: {now.strftime("%d/%m/%Y %H:%M:%S")}")
now = datetime.datetime.now().strftime("%d/%m/%Y %H:%M:%S")
print(f"Date: {now}")
print(f"Thanks, {customer.name}, for your purchase!")
print("You have bought:")
for product, amount in customer.product_cart.items():
Expand Down

0 comments on commit 1991b23

Please sign in to comment.