1 parent
55e7700eef
commit
19c2daf416
1 file changed
+2
-3
+2
-3
@@ -79,7 +79,7 @@ def do_bitable_record_add(data) -> None:
|
||||
table_id = event.get("table_id")
|
||||
action_list = event.get("action_list")
|
||||
|
||||
actions = [action.get("action") for action in action_list]
|
||||
actions_name = [action.get("action") for action in action_list]
|
||||
|
||||
target_actions = ["record_edited", "record_added"]
|
||||
|
||||
@@ -87,7 +87,7 @@ def do_bitable_record_add(data) -> None:
|
||||
action for action in action_list if action.get("action") == "record_edited"
|
||||
]
|
||||
|
||||
if set(target_actions) >= set(actions):
|
||||
if set(target_actions) >= set(actions_name):
|
||||
return
|
||||
|
||||
if table_id != "tblESHsFZwtiFROB":
|
||||
@@ -101,7 +101,6 @@ def do_bitable_record_add(data) -> None:
|
||||
print(f"target_action: {target_action.get('record_id')}")
|
||||
|
||||
|
||||
|
||||
handler = (
|
||||
lark.EventDispatcherHandler.builder(
|
||||
encrypt_key, verification_token, lark.LogLevel.DEBUG
|
||||
|
||||
Reference in new issue
Block a user