-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
solution #599
base: master
Are you sure you want to change the base?
solution #599
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix flake8 errors, please
app/main.py
Outdated
|
||
print(f"{customer.name} rides to {best_shop.name}\n") | ||
customer.make_purchase(best_shop, fuel_price) | ||
print(f"Date: {datetime(2021, 1, 4, 12, 33, 41).strftime( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use datetime.now instead of hardcode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests Failed!
app/customer.py
Outdated
return sum([shop.get_product_price(product) | ||
* quantity for product, quantity | ||
in self.product_cart.items()]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return sum([shop.get_product_price(product) | |
* quantity for product, quantity | |
in self.product_cart.items()]) | |
return sum( | |
shop.get_product_price(product) * quantity for product, quantity | |
in self.product_cart.items() | |
) |
No description provided.