fixed deleting notes

This commit is contained in:
azivner 2017-09-06 22:54:20 -04:00
parent a8c576298b
commit 91245ab5b8

View file

@ -78,7 +78,7 @@ def deleteNote(note_id):
children = getResults("select note_id from notes_tree where note_pid = ?", [note_id])
for child in children:
delete(child['note_id'])
deleteNote(child['note_id'])
delete("notes_tree", note_id)
delete("notes", note_id)