Old Stocks block_id has 0 in position 2 (not the persons count) so all its rates were stored as max_persons=0 and deprioritised in the matrix. Now reads max_persons from the visible 'Max persons: N' span (matching the original scrapy spider), with aria-label/title fallback. block_id segment 2 is unreliable across different hotel layouts. Also treat max_persons=0 as unknown in the matrix ORDER BY priority. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| direct_profiles | ||
| scraper_backends | ||
| __init__.py | ||
| booking_scraper.py | ||
| central_settings.py | ||
| direct_scraper.py | ||
| newbook_rates_client.py | ||
| proxy.py | ||