We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 662c591 commit 2cdc778Copy full SHA for 2cdc778
1 file changed
WDoc/utils/loaders.py
@@ -545,7 +545,7 @@ def load_one_doc(
545
)
546
assert docs[i].metadata["all_hash"], f"Empty all_hash for document: {docs[i]}"
547
548
- total_reading_length = sum([d.metadata["doc_reading_time"] for d in docs])
+ total_reading_length = sum([float(d.metadata["doc_reading_time"]) for d in docs])
549
assert total_reading_length > 0.1, (
550
f"Failing doc: total reading length is {total_reading_length:.3f}"
551
"min which is suspiciously low. Filetype {filetype} with kwargs "
0 commit comments