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)
      scheduleTimes (list[dict])
      - startDate (datetime)
      - endDate (datetime)
      scheduleBlockList (list[dict]): list of scheduleBlocks
      scheduleOption (string): i.e. 'wrap'
      scheduleConfig (dict): i.e. 'shiftTimeOnly': True
      rangeStart (datetime)
      rangeEnd (datetime)
  • Returns
      scheduleEventTimes (list[dict])