File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/models-library/src/models_library/utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import hashlib
2+ import json
23import logging
34from collections .abc import Callable , Coroutine
45from copy import deepcopy
56from typing import Any
67
7- from common_library .json_serialization import json_dumps
88from pydantic import BaseModel , TypeAdapter
99
1010from ..projects import Project
@@ -67,6 +67,6 @@ async def compute_node_hash(
6767 # now create the hash
6868 # WARNING: Here we cannot change to json_serialization.json_dumps because if would create a different dump string and therefore a different hash
6969 # NOTE that these hashes might have been already stored elsewhere
70- block_string = json_dumps (resolved_payload , sort_keys = True ).encode ("utf-8" )
70+ block_string = json . dumps (resolved_payload , sort_keys = True ).encode ("utf-8" )
7171 raw_hash = hashlib .sha256 (block_string )
7272 return raw_hash .hexdigest ()
You can’t perform that action at this time.
0 commit comments