adjust event data
continuous-integration/drone/push Build is passing

This commit is contained in:
jianxin committed 2024-04-10 11:35:40 +08:00
1 parent 0ce98ec613
commit f4fe2a6770
1 file changed
+18 -1
+18 -1
View File
@@ -97,8 +97,25 @@ def do_bitable_record_add(data) -> None:
return
target_action = actions[0]
record_id = target_action.get("record_id")
after_value: list = target_action.get("after_value")
action_data = {}
for field in after_value:
if field.get("field_id") == "fldIV2G9lv":
action_data["title"] == field.get("field_value")
if field.get("field_id") == "fldk5ImODy":
action_data["background"] == field.get("field_value")
if field.get("field_id") == "fldfjXnFVa":
action_data["features"] == field.get("field_value")
print(f"table_id: {table_id}")
print(f"target_action: {target_action.get('record_id')}")
print(f"record_id: {record_id}")
print(f"target_action: {target_action.get('action')}")
print(action_data)
handler = (