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