Cap pickup suggestion so OTB + pickup never exceeds bookable capacity

Rename ML± column to Pickup± (prior-year pace model, not ML)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-21 17:47:40 +00:00
parent 1fae3ce60b
commit ca75037e39

View file

@ -1281,6 +1281,10 @@ async def forecast_rooms_for_date(
'prior_final': prior_final_by_cat.get(cat_id, 0)
}
# Cap pickup so OTB + suggestion never exceeds available capacity
if bookable > 0:
total_pickup_rooms = min(total_pickup_rooms, max(0, bookable - current_otb_rooms))
# Base forecast
forecast_rooms = current_otb_rooms + total_pickup_rooms