add some features
continuous-integration/drone/push Build is passing

This commit is contained in:
jianxin committed 2024-06-06 16:48:45 +08:00
1 parent 163614a87d
commit b21cac55f4
1 file changed
+5 -6
+5 -6
View File
@@ -130,11 +130,10 @@ def do_bitable_record_add(data) -> None:
if field.get("field_id") == "fldaxMbywh":
# 有可能值为空
print(field)
# action_data["deal_person"] = (
# field.get("field_identity_value").get("users")[0].get("name")
# )
if not field.get("field_value"):
action_data["deal_person"] = (
field.get("field_identity_value").get("users")[0].get("name")
)
print(f"table_id: {table_id}")
print(f"record_id: {record_id}")
@@ -146,7 +145,7 @@ def do_bitable_record_add(data) -> None:
process_new_demand.delay(app_id, app_secret, table_id, record_id, action_data)
return
if "record_edited" in actions_name and action_data["status"] == "xxxxxxx":
if "record_edited" in actions_name and action_data["status"] == "optgKzdQp5":
process_new_robot.delay()
return