Skip to content

Commit 1b87b06

Browse files
Update state-manager/app/models/db/state.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent f6f91c6 commit 1b87b06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

state-manager/app/models/db/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _generate_fingerprint(self):
3232
"run_id": self.run_id,
3333
"parents": {key: str(value) for key, value in self.parents.items()}
3434
}
35-
self._fingerprint = hashlib.sha256(json.dumps(data).encode()).hexdigest()
35+
self._fingerprint = hashlib.sha256(json.dumps(data, sort_keys=True).encode()).hexdigest()
3636

3737
@property
3838
def fingerprint(self):

0 commit comments

Comments
 (0)