2025-12-21 17:29:39 +01:00
|
|
|
"""Load shared constants from shared/constants.json."""
|
2025-12-21 21:54:26 +01:00
|
|
|
|
2025-12-21 17:29:39 +01:00
|
|
|
import json
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
_constants_path = Path(__file__).parent.parent / "shared" / "constants.json"
|
|
|
|
|
_constants = json.loads(_constants_path.read_text())
|
|
|
|
|
|
|
|
|
|
# Booking constants
|
|
|
|
|
SLOT_DURATION_MINUTES: int = _constants["booking"]["slotDurationMinutes"]
|
|
|
|
|
MIN_ADVANCE_DAYS: int = _constants["booking"]["minAdvanceDays"]
|
|
|
|
|
MAX_ADVANCE_DAYS: int = _constants["booking"]["maxAdvanceDays"]
|
|
|
|
|
NOTE_MAX_LENGTH: int = _constants["booking"]["noteMaxLength"]
|