Skip to content

Commit

Permalink
Merge pull request #20 from Sujanadh/fix-invalid-json
Browse files Browse the repository at this point in the history
Convert 'tags' column values to JSON strings
  • Loading branch information
spwoodcock authored Jan 18, 2024
2 parents fbfdf13 + 6cb7a92 commit 98aac7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fmtm_splitter/splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 98aac7d

Please sign in to comment.