From 1991b2319802edb1c9ccff2f1bb6d241b86e1724 Mon Sep 17 00:00:00 2001 From: Taras Tkachuk Date: Sat, 1 Jun 2024 03:10:08 +0300 Subject: [PATCH] . --- app/shop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/shop.py b/app/shop.py index bb42641f..c93791c6 100644 --- a/app/shop.py +++ b/app/shop.py @@ -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():