We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0a153d commit 127c4feCopy full SHA for 127c4fe
1 file changed
WDoc/utils/batch_file_loader.py
@@ -230,7 +230,7 @@ def batch_load_doc(
230
231
@optional_typecheck
232
def deterministic_sorter(doc_dict: DocDict) -> int:
233
- h = doc_dict["content_hash"]
+ h = doc_dict["file_hash"]
234
h2 = ''.join(filter(str.isdigit, h))
235
h_ints = int(h2) if h2.isdigit() else int(random.random() * 1000)
236
h_ordered = h_ints * (10 ** (sorted_filetypes.index(doc_dict["filetype"]) + 1))
0 commit comments