fix: close remaining task 2 review findings
This commit is contained in:
@@ -10,8 +10,10 @@ STATES = {
|
||||
}
|
||||
|
||||
|
||||
def blocker_fingerprint(tenant: str, company: str, product_code: str, field: str, reason_code: str, input_fingerprint: str) -> str:
|
||||
def blocker_fingerprint(tenant: str, company: str, product_code: str, field: str, reason_code: str, input_fingerprint: str, installation_id: str | int | None = None) -> str:
|
||||
raw = {"tenant": tenant, "company": company, "product_code": product_code, "field": field, "reason_code": reason_code, "input_fingerprint": input_fingerprint}
|
||||
if installation_id is not None:
|
||||
raw["installation_id"] = str(installation_id)
|
||||
return hashlib.sha256(json.dumps(raw, sort_keys=True, separators=(",", ":")).encode()).hexdigest()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user