Skip to content

Commit 127c4fe

Browse files
fix hash
1 parent d0a153d commit 127c4fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WDoc/utils/batch_file_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def batch_load_doc(
230230

231231
@optional_typecheck
232232
def deterministic_sorter(doc_dict: DocDict) -> int:
233-
h = doc_dict["content_hash"]
233+
h = doc_dict["file_hash"]
234234
h2 = ''.join(filter(str.isdigit, h))
235235
h_ints = int(h2) if h2.isdigit() else int(random.random() * 1000)
236236
h_ordered = h_ints * (10 ** (sorted_filetypes.index(doc_dict["filetype"]) + 1))

0 commit comments

Comments
 (0)