Fix NameError in date-first sharding: shards → date_shards

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 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-10 01:42:27 +00:00
parent effa982a8e
commit 3b931d4915

View file

@ -611,7 +611,7 @@ async def _scrape_hotels_concurrent(
return acc return acc
results = await asyncio.gather( 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, return_exceptions=True,
) )