Skip to content

Commit

Permalink
fix: remove empty strings when lifting properties (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
pquadri authored Oct 7, 2024
1 parent 695c5b5 commit 5cb8649
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,4 @@ config.json
.autoenv.zsh
*~
env-vars*
.venv
2 changes: 1 addition & 1 deletion tap_hubspot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def request(url, params=None):
def lift_properties_and_versions(record):
for key, value in record.get('properties', {}).items():
computed_key = "property_{}".format(key)
record[computed_key] = value
record[computed_key] = value if value != '' else None
if isinstance(value, dict):
versions = value.get('versions')
if versions:
Expand Down

0 comments on commit 5cb8649

Please sign in to comment.