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:
parent
effa982a8e
commit
3b931d4915
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue