Skip to main content

system.kanoa.schedule.adjustScheduleEvents

Description

Takes a list of scheduleTimes to be scheduled and a list of scheduleBlocks that are overlapping and adjusts the scheduleTimes.

Syntax

adjustScheduleEvents(scheduleBlockInfo, scheduleTimes, scheduleBlockList, scheduleOption, scheduleConfig, rangeStart, rangeEnd, userId)

Parameters:
  • scheduleBlockInfo (dict): Dictionary containing information about the schedule block.
  • scheduleTimes (list[dict]): List of schedule times.
  • scheduleBlockList (list[dict]): List of scheduleBlocks.
  • scheduleOption (string): e.g., 'wrap'.
  • scheduleConfig (dict): Configuration dictionary
  • rangeStart (datetime): Start of the range to evaluate.
  • rangeEnd (datetime): End of the range to evaluate.
  • userId (int): ID of the user performing the adjustment.

  • Returns:
  • scheduleEventTimes (list[dict]): Adjusted list of schedule event times.
  • Dictionary

    ParameterTypeRequiredNotes
    startDatedatetimeStart of the schedule time block
    endDatedatetimeEnd of the schedule time block