From 38f0219e3ecb6a06d20af1b8c3ca3bd4052e5f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sun, 1 Jan 2023 14:58:13 -0500 Subject: [PATCH] scraper: remove unused index variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/canadiantracker/scraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/canadiantracker/scraper.py b/src/canadiantracker/scraper.py index 44620de..2866d9e 100644 --- a/src/canadiantracker/scraper.py +++ b/src/canadiantracker/scraper.py @@ -182,7 +182,7 @@ def scrape_skus(db_path: str, products: str | None): with click.progressbar( repository.products(codes=products_list), **progress_bar_settings ) as products_wrapper: - for i, product in enumerate(products_wrapper): + for product in products_wrapper: try: for sku in triangle.SkusInventory(product): repository.add_sku(product, sku)