Skip to main content

system.kanoa.schedule.getExistingEventAdjustedTimes

Description

Checks the existingEvent time against an eventToSchedule time and returns the existingEvent with adjusted time and an action i.e 'adjust' or 'delete'

Syntax

getExistingEventAdjustedTimes(scheduleOption, eventToSchedule, existingEvent)
  • Parameters
      scheduleOption (string): 'fixed', 'override', 'wrap'
      eventToSchedule (dict): scheduleBlockInfo
      - startDate (datetime)
      - endDate (datetime)
      existingEvent (dict): scheduleBlockInfo
      - startDate (datetime)
      - endDate (datetime)
  • Returns
      existingEvent (dict): scheduleBlockInfo
      dateAdjusted (bool)