fix get user id
continuous-integration/drone/push Build is passing

This commit is contained in:
jianxin committed 2024-06-06 18:06:37 +08:00
1 parent 60d4f2a8e3
commit d441279b65
1 file changed
+3 -4
+3 -4
View File
@@ -130,10 +130,9 @@ def do_bitable_record_add(data) -> None:
if field.get("field_id") == "fldaxMbywh":
# 有可能值为空
if not field.get("field_value"):
action_data["deal_person"] = (
field.get("field_identity_value").get("users")[0].get("name")
)
if field.get("field_value"):
action_data["deal_person"] = json.loads(field.get("field_value")).get("users")[0].get("name")
print(f"table_id: {table_id}")
print(f"record_id: {record_id}")