Fix live national source serialization
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-18 01:51:50 +02:00
parent 1e527bf810
commit ec3e7a4fa8
4 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ def read_adminvector_layers(gpkg_path: Path) -> dict[str, dict[str, Any]]:
raise RuntimeError(
f"NGI layer {layer_name} has {len(frame)} records; expected between {minimum} and {maximum}"
)
payload = json.loads(frame.to_json(drop_id=False))
payload = json.loads(frame.to_json(drop_id=False, default=str))
source_max_modification = None
if "modifdate" in frame.columns:
parsed = pandas.to_datetime(frame["modifdate"], errors="coerce", utc=True).dropna()