Skip to content

Commit

Permalink
Skip transformation if boolean field is null
Browse files Browse the repository at this point in the history
  • Loading branch information
dmosorast committed Aug 14, 2018
1 parent 3acfdbd commit 007f2a5
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 007f2a5

Please sign in to comment.