This commit is contained in:
DingZQ
2025-04-20 09:53:32 +08:00
parent c704f8a5a8
commit 2a9c9da743

View File

@@ -69,7 +69,7 @@ def get_pipe_risk_probability_geometries(name: str) -> dict[str, Any]:
with conn[name].cursor(row_factory=dict_row) as cur:
cur.execute(f"select {key_pipeId}, ST_AsGeoJSON(geometry) AS {key_geometry} from gis_pipe")
columns = [desc[0] for desc in cursor.description]
columns = [desc[0] for desc in cur.description]
columns.remove(key_pipeId)
columns.remove(key_geometry)