Free-Rooms implementation #17
@@ -842,4 +842,4 @@ class AlpineBitsServer:
|
||||
|
||||
|
||||
# Ensure FreeRoomsAction is registered with ServerCapabilities discovery
|
||||
#from .free_rooms_action import FreeRoomsAction
|
||||
from .free_rooms_action import FreeRoomsAction
|
||||
|
||||
@@ -586,7 +586,12 @@ class FreeRoomsAction(AlpineBitsAction):
|
||||
self,
|
||||
sac: OtaHotelInvCountNotifRq.Inventories.Inventory.StatusApplicationControl,
|
||||
) -> bool:
|
||||
return (sac.all_inv_code or "").strip().lower() == "true"
|
||||
"""Check if AllInvCode is a truthy boolean value.
|
||||
|
||||
Accepts: "true", "True", "TRUE", "1", "yes", "Yes", "YES", etc.
|
||||
"""
|
||||
value = (sac.all_inv_code or "").strip().lower()
|
||||
return value in ("true", "1", "yes")
|
||||
|
||||
def _extract_counts(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user