Skip to main content

system.kanoa.quality.config.updateUnit

This function requires KanoaQDS module

Description

Updates an engineering unit in KanoaQDS.

Syntax

updateUnit(unitInfo, userId)
  • Parameters
      dict unitInfo - Dictionary with unit details, e.g., {'engUnitId': 1, 'engUnitName': 'some unit', 'enabled': True}
      int userId - User ID.
  • Returns
      int recordsModified - Number of records modified.
  • Code Examples

    # Usage example
    unit_info_update = {'engUnitId': 1, 'engUnitName': 'some unit', 'enabled': True}
    user_id_update = 123
    modified_records_update = system.kanoa.quality.config.updateUnit(unitInfo=unit_info_update, userId=user_id_update)

    print(f"Updated {modified_records_update} records.")