Skip to main content

system.kanoa.quality.schedule.getSecondsSinceLastCheck

This function is part of the kanoaQDS module

Description

Returns the seconds since the last scheduled check for a checksheet on an asset in the KanoaQDS (Quality Data System).

Syntax

getSecondsSinceLastCheck(paramsDict)
  • Parameters
      dictionary paramsDict - {'chkShtId': 1, 'assetId': 18}
  • Returns
      dictionary {'lastScheduledDate': datetime, 'seconds': int}
  • Code Examples

    # Example usage
    paramsDict = {'chkShtId': 1, 'assetId': 18}
    result = system.kanoa.quality.schedule.getSecondsSinceLastCheck(paramsDict)
    print(f"Last scheduled date: {result['lastScheduledDate']}, Seconds since last check: {result['seconds']}")