Skip to content

Commit

Permalink
fix: invalid tag json parsing PR (#20)
Browse files Browse the repository at this point in the history
Convert 'tags' column values to JSON strings
  • Loading branch information
spwoodcock committed Jan 18, 2024
2 parents fbfdf13 + 6cb7a92 commit e477501
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 e477501

Please sign in to comment.