-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix auto rule link records #685
Conversation
42cd720
to
e71bed3
Compare
else: | ||
return value | ||
def gen_filter(self, column, other_column): | ||
"""Generate a filter dict to filter other table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里总共就13中if列类型, 看了一下, 缺少 if column['type'] == ColumnTypes.EMAIL 处理
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
函数第一个 if 里有 email
return self.gen_filter({'key': column['key'], 'type': ColumnTypes.NUMBER}, other_column) | ||
elif column_data.get('result_type') == 'bool': | ||
return self.gen_filter({'key': column['key'], 'type': ColumnTypes.CHECKBOX}, other_column) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里是不是还需要加入 result_type == 'date' 类型呢?
dtable_events/automations/actions.py
Outdated
'filter_predicate': self.COLUMN_FILTER_PREDICATE_MAPPING[ColumnTypes.CHECKBOX] | ||
} | ||
elif other_column['type'] == ColumnTypes.FORMULA: | ||
if other_column_data.get('result') == 'bool': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other_column_data.get('result') --> other_column_data.get('result_type')
No description provided.