Skip to content
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

Show the price for the number of selected parts #496

Merged
merged 6 commits into from
Aug 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix typo
Bouni committed Aug 5, 2024
commit c0231df4958574bb5e18230486b703ab64af4f8f
2 changes: 1 addition & 1 deletion partselector.py
Original file line number Diff line number Diff line change
@@ -643,7 +643,7 @@ def update_subcategories(self, *_):
self.search(None)

def get_price(self, quantity, prices):
"""Find the prce for the number of selected parts accordning to the price ranges."""
"""Find the price for the number of selected parts accordning to the price ranges."""
price_ranges = prices.split(",")
min_quantity = int(price_ranges[0].split("-")[0])
if quantity <= min_quantity: