From 42963bcf9e8e6f4749b2ba6a3f228875889748cf Mon Sep 17 00:00:00 2001 From: swenzel Date: Sat, 12 Jul 2025 04:22:04 +0200 Subject: [PATCH] Fix typo related to hashing MCProdInfo --- MC/prodinfo/mcprodinfo_ccdb_upload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MC/prodinfo/mcprodinfo_ccdb_upload.py b/MC/prodinfo/mcprodinfo_ccdb_upload.py index 5b798cfa9..34b104fc0 100644 --- a/MC/prodinfo/mcprodinfo_ccdb_upload.py +++ b/MC/prodinfo/mcprodinfo_ccdb_upload.py @@ -27,12 +27,12 @@ def __post_init__(self): # Hash only the meaningful fields data_to_hash = { k: v for k, v in asdict(self).items() - if k != 'hash' + if k != 'Hash' } hash_str = hashlib.sha256( json.dumps(data_to_hash, sort_keys=True).encode() ).hexdigest() - object.__setattr__(self, 'hash', hash_str) + object.__setattr__(self, 'Hash', hash_str) import re