Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouni committed Aug 5, 2024
1 parent c0231df commit 5bd4d5b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions partselector.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,20 +679,8 @@ def populate_part_list(self, parts, search_duration):
self.result_count.SetLabel(f"{count} Results in {search_duration_text}")
for p in parts:
item = [str(c) for c in p]
# Munge price to be more readable
pricecol = 8 # Must match order in library.py search function
item[pricecol] = f"{len(self.parts)} parts: {self.get_price(len(self.parts), item[pricecol])} each"
# try:
# for t in item[pricecol].split(","):
# qty, p = t.split(":")
# p = float(p)
# if p < 1.0:
# price.append(f"{qty}: {p * 100:.2f}c")
# else:
# price.append(f"{qty}: ${p:.2f}")
# item[pricecol] = ", ".join(price)
# except ValueError:
# self.logger.warning("unable to parse price %s", item[pricecol])
self.part_list.AppendItem(item)

def select_part(self, *_):
Expand Down

0 comments on commit 5bd4d5b

Please sign in to comment.