forecasting/backend
jtricerolph 7ebc31756d Fix OTB overcounting by counting distinct rooms not booking rows
Multiple bookings per room (early-checkout Departed + new Arrived, or
NewBook double-bookings) caused COUNT(*) to exceed total room capacity.
Switch to COUNT(DISTINCT COALESCE(room_number, newbook_id)) so each
physical room counts once regardless of how many booking rows span it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-21 17:19:51 +00:00
..
api Fix cascading InFailedSQLTransactionError in covers forecast 2026-07-21 16:50:09 +00:00
jobs Add weather sync job, API endpoints and settings UI 2026-07-13 21:10:03 +00:00
services Fix OTB overcounting by counting distinct rooms not booking rows 2026-07-21 17:19:51 +00:00
utils Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
auth.py fix: restore app-local API key functions in auth.py 2026-07-04 19:11:00 +00:00
database.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
Dockerfile Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
main.py Remove bookability and competitor rates — moved to Rate Monitor app 2026-07-05 12:14:26 +00:00
requirements.txt Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
scheduler.py Remove old Resos sync path (resos_bookings table) 2026-07-13 21:07:47 +00:00
schema.sql Remove old Resos sync path (resos_bookings table) 2026-07-13 21:07:47 +00:00