Skip to main content

system.kanoa.event.updatePerformanceEvent

This function requires KanoaOPS module

Description

Update the performance event. Update Link table accordingly

Syntax

updatePerformanceEvent(performanceEventInfo, userId)
  • Parameters
      performanceEventInfo (dict)
      - performanceEventId (int)
      - modeEventId (int)
      - startDate (datetime)
      - endDate (datetime)
      - performanceStateId (int)
      - value (float)
      - note (string)
      userId (int)
  • Returns
    data (pyDataset).
  • Code Example

    # Example Usage:
    userId = 18
    performanceEventInfo = {
    'modeEventId': 5,
    'startDate': 2025-05-01 00:00:00,
    'endDate': 2025-05-01 08:00:00,
    'performanceStateId': 7,
    'value': 0.1,
    'note': 'Approved'
    }
    updatePerformanceEvent(performanceEventInfo, userId)
    >
    1, None
    >>>