Skip to content

Commit

Permalink
fixed ParameterInvariant.freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
TyberiusPrime committed Sep 20, 2024
1 parent 553a85f commit ee0f6fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pypipegraph2/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1871,7 +1871,7 @@ def freeze(obj):
# if isinstance(obj, str) and len(obj) == 32 and is_hex_re.match(obj):
# If it's already a hash, we keep it that way
# return obj
return _hash_object(obj)
return _hash_object(obj)[1]

def extract_strict_hash(self, a_hash) -> bytes:
return str(ParameterInvariant.freeze(a_hash)).encode("utf-8")
Expand Down

0 comments on commit ee0f6fc

Please sign in to comment.