fix a bug in pseudowords prof tool

This commit is contained in:
BimDav
2024-06-11 14:38:26 +02:00
parent 410f90b143
commit d235ca9347
+3 -1
View File
@@ -90,7 +90,9 @@ func _on_list_title_save_pressed() -> void:
if element.word_id == word.ID: if element.word_id == word.ID:
found = true found = true
if element.pseudoword != word.Pseudoword: if element.pseudoword != word.Pseudoword:
Database.db.update_rows("Pseudowords", "Pseudoword", element.pseudoword) Database.db.update_rows("Pseudowords", "ID = %s" % word.ID, {
Pseudoword = element.pseudoword
})
break break
if not found: if not found:
Database.db.insert_row("Pseudowords", { Database.db.insert_row("Pseudowords", {