Skip to content

Commit

Permalink
Merge pull request #9 from singer-io/fix/allow_booleans_to_be_null
Browse files Browse the repository at this point in the history
Skip transformation if boolean field is null
  • Loading branch information
dmosorast authored Aug 14, 2018
2 parents 3acfdbd + 007f2a5 commit 0b0c484
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tap_appsflyer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ def xform_datetime_field(record, field_name):


def xform_boolean_field(record, field_name):
if record[field_name].lower() == "TRUE".lower():
value = record[field_name]
if value is None:
return

if value.lower() == "TRUE".lower():
record[field_name] = True
else:
record[field_name] = False
Expand Down

0 comments on commit 0b0c484

Please sign in to comment.