You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix per-carrier booking class in verify/scrape commands (closes#2)
AA uses H class for oneworld Explorer business, not D. The verify and
scrape commands hardcoded D for all carriers, producing false negatives
on AA segments. Now resolves booking class per carrier from carriers.yaml
(AA=H, others=D) with --class flag as optional override.
- New rtw/carriers.py shared utility with get_booking_class()
- DClassVerifier resolves per-segment, updated cache keys
- DClassResult.display_code uses actual class letter (H9/D9)
- CLI --class default changed to auto per-carrier lookup
- 37 new tests (822 total, 0 failures)
Co-Authored-By: Claude Opus 4.6 <[email protected]>
booking_class: Annotated[Optional[str], typer.Option("--class", "-c", help="Override booking class (default: auto per carrier, AA=H, others=D)")] =None,
0 commit comments