This commit is contained in:
shufeng2012 committed 2026-07-24 16:50:15 +08:00
1 parent f1201c692b
commit 5fe2e2ed65
1 file changed
+12 -10
+12 -10
View File
@@ -177,19 +177,21 @@ def add_note():
# db.session.commit() # db.session.commit()
select_payload = { if pid != 0:
'action': 'select',
'table': 'Notes', select_payload = {
'where': { 'action': 'select',
'id': pid 'table': 'Notes',
'where': {
'id': pid
}
} }
}
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
# 内容审查 # 内容审查