From 3b931d49158d7a13fd41afcaa86cccb63e08cf89 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Fri, 10 Jul 2026 01:42:27 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20NameError=20in=20date-first=20sharding:?= =?UTF-8?q?=20shards=20=E2=86=92=20date=5Fshards?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit asyncio.gather iterated undefined `shards` — should be `date_shards` (variable renamed when switching from hotel-first to date-first sharding). Caused every hotel-page scrape to immediately fail with NameError. Co-Authored-By: Claude Sonnet 4.6 --- backend/services/booking_scraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/booking_scraper.py b/backend/services/booking_scraper.py index d32dda4..7a1e48a 100644 --- a/backend/services/booking_scraper.py +++ b/backend/services/booking_scraper.py @@ -611,7 +611,7 @@ async def _scrape_hotels_concurrent( return acc results = await asyncio.gather( - *(worker(shard, i) for i, shard in enumerate(shards)), + *(worker(shard, i) for i, shard in enumerate(date_shards)), return_exceptions=True, )