This commit is contained in:
shufeng2012 committed 2026-07-24 16:50:15 +08:00
1 parent f1201c692b
commit 5fe2e2ed65
1 file changed
+4 -2
+4 -2
View File
@@ -177,6 +177,8 @@ def add_note():
# db.session.commit() # db.session.commit()
if pid != 0:
select_payload = { select_payload = {
'action': 'select', 'action': 'select',
'table': 'Notes', 'table': 'Notes',
@@ -188,8 +190,8 @@ def add_note():
notes = call_db_service(DB_SERVER_URL, select_payload) notes = call_db_service(DB_SERVER_URL, select_payload)
# 不存在的父节点 # 不存在的父节点
#if [] == notes['data']: if [] == notes['data']:
# return jsonify({'error': 'the new node need a parent'}), 400 return jsonify({'error': 'the new node need a parent'}), 400
# 内容审查 # 内容审查