system.kanoa.quality.schedule.getSecondsSinceLastCheck(paramsDict)
Returns the seconds since the last scheduled check for this check sheet on this asset. All paramsDict keys are required.
Parameters
paramsDict Dictionary
| - assetId | Integer | |
| - chkShtId | Integer |
Returns
lastCheckInfo Dictionary i.e {'lastScheduledDate ..., 'seconds' 450}
Example
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']}")