system.kanoa.quality.schedule.getSecondsSinceLastCheck
Description
Returns the seconds since the last scheduled check for a checksheet on an asset in the KanoaQDS (Quality Data System).Syntax
getSecondsSinceLastCheck(paramsDict)- dictionary paramsDict - {'chkShtId': 1, 'assetId': 18}
- 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']}")