From 5bd4d5b1a1f7c1d787b53d032178887a1a35598a Mon Sep 17 00:00:00 2001 From: bouni Date: Wed, 31 Jul 2024 15:12:13 +0200 Subject: [PATCH] Remove commented code --- partselector.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/partselector.py b/partselector.py index 284a65a4..32fdef39 100644 --- a/partselector.py +++ b/partselector.py @@ -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, *_):