From 7a3d5e8164c2f4e1acb249494ac865b592ccec5c Mon Sep 17 00:00:00 2001 From: woni <320753691@qq.com> Date: Tue, 16 Apr 2024 15:55:14 +0800 Subject: [PATCH] add record category --- app/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index ad8b8cc..a936bbe 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -116,10 +116,8 @@ def do_bitable_record_add(data) -> None: action_data["features"] = tmp if field.get("field_id") == "fld9QkmcS1": - tmp = "".join( - [item["text"] for item in json.loads(field.get("field_value"))] - ) - action_data["category"] = tmp + + action_data["category"] = field.get("field_value") print(f"table_id: {table_id}") print(f"record_id: {record_id}")