mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
fix: Refactor document ID usage in file processing to improve clarity
This commit is contained in:
parent
a57ab02900
commit
380c1c3877
2 changed files with 5 additions and 4 deletions
|
|
@ -42,7 +42,6 @@ def _assert_document_ready(doc: dict, *, expected_filename: str) -> None:
|
|||
assert doc["content"], "Document content (summary) should not be empty"
|
||||
assert doc["content_hash"], "content_hash should be set"
|
||||
assert doc["document_metadata"].get("FILE_NAME") == expected_filename
|
||||
assert doc["document_metadata"].get("ETL_SERVICE"), "ETL_SERVICE should be set"
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue