Skip to content

Commit 42963bc

Browse files
committed
Fix typo related to hashing MCProdInfo
1 parent bc937bf commit 42963bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MC/prodinfo/mcprodinfo_ccdb_upload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ def __post_init__(self):
2727
# Hash only the meaningful fields
2828
data_to_hash = {
2929
k: v for k, v in asdict(self).items()
30-
if k != 'hash'
30+
if k != 'Hash'
3131
}
3232
hash_str = hashlib.sha256(
3333
json.dumps(data_to_hash, sort_keys=True).encode()
3434
).hexdigest()
35-
object.__setattr__(self, 'hash', hash_str)
35+
object.__setattr__(self, 'Hash', hash_str)
3636

3737

3838
import re

0 commit comments

Comments
 (0)