From 6cb7a923e0841ea2487c4fbf595116f1729ba750 Mon Sep 17 00:00:00 2001 From: sujanadh Date: Wed, 3 Jan 2024 17:58:21 +0545 Subject: [PATCH] fixed invalid json type tags to valid json --- fmtm_splitter/splitter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fmtm_splitter/splitter.py b/fmtm_splitter/splitter.py index 972cfb1..9f1acf9 100755 --- a/fmtm_splitter/splitter.py +++ b/fmtm_splitter/splitter.py @@ -206,6 +206,7 @@ def splitBySQL( # noqa: N802 # Add aoi to project_aoi table log.debug(f"Adding AOI to project_aoi table: {self.aoi.to_dict()}") + self.aoi["tags"] = self.aoi["tags"].apply(json.dumps) self.aoi.to_postgis( "project_aoi", conn,