desa fetch

This commit is contained in:
='fauz
2025-06-30 13:18:43 +07:00
parent f480216e5c
commit e714218b9d
3 changed files with 4 additions and 4 deletions
Binary file not shown.
+1 -1
View File
@@ -383,7 +383,7 @@ class apiController:
elif level == 'kecamatan':
cur.execute("SELECT id, kode, nama, null as lat, null as lng, koordinat as path FROM wil_kecamatan WHERE kabupaten_kota_id = %s", (parent_code,))
elif level == 'desa':
cur.execute("SELECT id, kode, nama, null as lat, null as lng, koordinat as path FROM wil_desa WHERE kecamatan_id = %s", (parent_code,))
cur.execute("SELECT id, kode, nama, null as lat, null as lng,path FROM wil_desa WHERE kecamatan_id = %s", (parent_code,))
else:
return {"type": "FeatureCollection", "features": []}
features = []