Skip to content

Commit

Permalink
Merge pull request #27 from bcgov/issue25
Browse files Browse the repository at this point in the history
set none hash key to empty list so hash keys can be passed to field n…
  • Loading branch information
smnorris authored Oct 1, 2024
2 parents fb253f7 + 68e763f commit dcfe2e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/fit_opendatadownloader/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ def clean(
# standardize column naming
if df.geometry.name != "geometry":
df = df.rename_geometry("geometry")

# set empty hash fields to empty list
if not hash_fields:
hash_fields = []

cleaned_column_map = {}
for column in fields + hash_fields:
cleaned_column_map[column] = re.sub(
Expand Down

0 comments on commit dcfe2e4

Please sign in to comment.