Skip to content

Commit

Permalink
solution
Browse files Browse the repository at this point in the history
  • Loading branch information
midetc committed Jul 20, 2024
1 parent 6a72c3c commit 2474e73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@


def load_config(filename: str) -> dict:
with open(filename, "r") as file:
with open(f"app/{filename}", "r") as file:
return json.load(file)
5 changes: 4 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def shop_trip() -> None:

print(f"{customer.name} rides to {best_shop.name}\n")
customer.make_purchase(best_shop, fuel_price)
print(f"Date: {datetime.now().strftime('%m/%d/%Y %H:%M:%S')}")
print(f"Date: {datetime.now().strftime("%m/%d/%Y %H:%M:%S")}")
print(f"Thanks, {customer.name}, for your purchase!")
print("You have bought:")
total_price = 0
Expand All @@ -54,3 +54,6 @@ def shop_trip() -> None:
customer.go_back()
print(f"{customer.name} rides home\n"
f"{customer.name} now has {customer.money} dollars\n")


shop_trip()

0 comments on commit 2474e73

Please sign in to comment.