Skip to content

Commit 2cdc778

Browse files
fix: minor
1 parent 662c591 commit 2cdc778

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WDoc/utils/loaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def load_one_doc(
545545
)
546546
assert docs[i].metadata["all_hash"], f"Empty all_hash for document: {docs[i]}"
547547

548-
total_reading_length = sum([d.metadata["doc_reading_time"] for d in docs])
548+
total_reading_length = sum([float(d.metadata["doc_reading_time"]) for d in docs])
549549
assert total_reading_length > 0.1, (
550550
f"Failing doc: total reading length is {total_reading_length:.3f}"
551551
"min which is suspiciously low. Filetype {filetype} with kwargs "

0 commit comments

Comments
 (0)