Skip to content

Commit

Permalink
fix link-records add email-column-match
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCXC committed Nov 24, 2024
1 parent 4d00133 commit 030eaf8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dtable_events/automations/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1734,6 +1734,21 @@ def gen_filter(self, column, other_column):
'filter_predicate': self.COLUMN_FILTER_PREDICATE_MAPPING[ColumnTypes.DURATION]
}

elif column['type'] == ColumnTypes.EMAIL:
if other_column['type'] in [ColumnTypes.TEXT, ColumnTypes.EMAIL]:
return {
'column_key': other_column['key'],
'filter_term': cell_value,
'filter_predicate': self.COLUMN_FILTER_PREDICATE_MAPPING[other_column['type']]
}
elif other_column['type'] == ColumnTypes.FORMULA:
if other_column_data.get('result_type') == 'string':
return {
'column_key': other_column['key'],
'filter_term': cell_value,
'filter_predicate': self.COLUMN_FILTER_PREDICATE_MAPPING[ColumnTypes.TEXT]
}

elif column['type'] == ColumnTypes.RATE:
if other_column['type'] in [ColumnTypes.NUMBER, ColumnTypes.RATE]:
return {
Expand Down

0 comments on commit 030eaf8

Please sign in to comment.