1 parent
d3af172a77
commit
55bed430d5
2 files changed
+10
No files matched your search
@@ -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')}")
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user