add record category
continuous-integration/drone/push Build is passing

This commit is contained in:
jianxin committed 2024-04-16 15:31:19 +08:00
1 parent d3af172a77
commit 55bed430d5
2 files changed
+10

No files matched your search

+6
View File
@@ -115,6 +115,12 @@ def do_bitable_record_add(data) -> None:
tmp = "".join([item["text"] for item in json.loads(field.get("field_value"))])
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
print(f"table_id: {table_id}")
print(f"record_id: {record_id}")
print(f"target_action: {target_action.get('action')}")
+4
View File
@@ -132,6 +132,7 @@ def process_new_demand(app_id, app_secret, data):
title = data.get("title")
background = data.get("background")
features = data.get("features")
category = data.get("category")
client = (
lark.Client.builder()
@@ -140,7 +141,10 @@ def process_new_demand(app_id, app_secret, data):
.log_level(lark.LogLevel.DEBUG)
.build()
)
space_id = "7268552249415319554"
parent_node_token = "ADkFwlLhmiLcqAk3QXLcZnHAnHf"
doc_id = create_doc(client, space_id, parent_node_token, title)
block_id = get_doc_block(client, doc_id)