Fix live national source serialization
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user