From a6ddc9bb0e974f778ff0774f519cb2019089b6b2 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sun, 20 Apr 2025 10:02:20 +0800 Subject: [PATCH] Refine --- api/s41_pipe_risk_probability.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/s41_pipe_risk_probability.py b/api/s41_pipe_risk_probability.py index f5eb771..3d4b5e4 100644 --- a/api/s41_pipe_risk_probability.py +++ b/api/s41_pipe_risk_probability.py @@ -68,8 +68,7 @@ def get_pipe_risk_probability_geometries(name: str) -> dict[str, Any]: key_geometry = 'geometry' 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") - cur.execute(f"select * from gis_pipe") + cur.execute(f"select *, ST_AsGeoJSON(geometry) AS {key_geometry} from gis_pipe") for record in cur: for col in record: