From 39aa1a37b3419a6d420a61f5f04da82f38921f8f Mon Sep 17 00:00:00 2001 From: sdirollo Date: Mon, 28 Aug 2023 12:14:08 +0200 Subject: [PATCH] fix issue without suburb --- importer/import.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/importer/import.py b/importer/import.py index 734b0d9..59701ba 100644 --- a/importer/import.py +++ b/importer/import.py @@ -57,7 +57,8 @@ def import_zone(z_line): z.pop("geometry"), number_mode=NM_DECIMAL|NM_NATIVE ) - pg_cur.execute(SINGLE_INSERT, z) + if z["geometry"] != "null": + pg_cur.execute(SINGLE_INSERT, z) def _import_cosmogony_to_pg(cosmogony_path):