Skip to content

Commit eb7e6ee

Browse files
Chris BrewERosendo
Chris Brew
authored andcommitted
refactor(utils): Update style of the hash_sha256 method
1 parent 1e004a8 commit eb7e6ee

File tree

4 files changed

+247
-199
lines changed

4 files changed

+247
-199
lines changed

eyecite/utils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ def hash_sha256(dictionary: dict) -> int:
122122
"""
123123

124124
# Convert the dictionary to a JSON string
125-
json_str: str = json.dumps(dictionary, sort_keys=True,default=str)
125+
# default needed because of dates
126+
json_str: str = json.dumps(dictionary, sort_keys=True, default=str)
126127

127128
# Convert the JSON string to bytes
128129
json_bytes: bytes = json_str.encode("utf-8")

0 commit comments

Comments
 (0)