MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / prep_score_data_update

Function prep_score_data_update

keepercommander/security_audit.py:102–109  ·  view source on GitHub ↗
(params, record)

Source from the content-addressed store, hash-verified

100 return sec_score_data
101
102def prep_score_data_update(params, record): # type: (KeeperParams, KeeperRecord) -> APIRequest_pb2.SecurityScoreData
103 ssd = APIRequest_pb2.SecurityScoreData()
104 revision = params.security_score_data.get(record.record_uid, {}).get('revision')
105 ssd.uid = utils.base64_url_decode(record.record_uid)
106 ssd.data = prep_score_data(record)
107 if revision:
108 ssd.revision = revision
109 return ssd
110
111def needs_security_audit(params, record): # type: (KeeperParams, KeeperRecord) -> bool
112 if not params.enterprise_ec_key or not record:

Callers 1

Calls 2

prep_score_dataFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected