Files
worldmonitor/scripts
Elie Habib 736426a8ed fix(aviation): correct cancellation rate calculation and add 12 airports (#1209)
- Use resolved-flights-only denominator (landed+active+cancelled+diverted)
  instead of all flights including scheduled/unknown. DXB was showing 15%
  cancelled (NORMAL) when the real rate among resolved flights is ~58% (MAJOR).
- Add flight_date=today filter to AviationStack API calls to avoid mixing
  historical/future flights into today's cancellation stats.
- Factor cancellation rate into ops summary table severity (was ignored,
  only delay minutes were considered). Uses shared severityFromCancelRate()
  to avoid threshold duplication.
- Add minimum resolved threshold (>=10) before using resolved denominator
  to prevent extreme percentages from tiny samples.
- Add 12 major airports to AviationStack monitoring: YVR, SCL, DUB, LIS,
  ATH, WAW, CAN, TPE, MNL, AMM, KWI, CMN (40→52 airports).
2026-03-07 19:55:16 +04:00
..