Loading
Eliminate duplicate TDocMetadata — use single Oxyde DB model
The Pydantic TDocMetadata in tdocs.models is deleted. All code now imports TDocMetadata from database.oxyde_models directly. Root cause of the AttributeError: the crawl pipeline produced Pydantic instances (no tbid/file_size fields) which were then passed to the DB layer that expected the Oxyde model (has tbid/file_size). Having two models for the same concept was the bug — not missing getattr guards. Changes: - Delete Pydantic TDocMetadata class from tdocs/models.py - Update 11 source modules to import from database.oxyde_models - Simplify extraction/fetch_tdoc.py (removed manual field-by-field conversion between the two models) - Update 6 test files for str agenda_item_nbr and removed validators - Keep TDocStatus enum in tdocs/models.py (used by checkout logic)