Fixed Update Query
This commit is contained in:
parent
ae5a264df0
commit
e1c4f368d6
|
@ -156,9 +156,10 @@ class AddressBook(Screen, HelperAddressBook):
|
||||||
if label in stored_labels and self.address == add_dict[label]:
|
if label in stored_labels and self.address == add_dict[label]:
|
||||||
stored_labels.remove(label)
|
stored_labels.remove(label)
|
||||||
if label and label not in stored_labels:
|
if label and label not in stored_labels:
|
||||||
sqlExecute(
|
sqlExecute("""
|
||||||
"UPDATE addressbook SET label = ? WHERE"
|
UPDATE addressbook
|
||||||
" address = ?", label, self.addbook_popup.content_cls.address)
|
SET label = ?
|
||||||
|
WHERE address = ?""", label, self.addbook_popup.content_cls.address)
|
||||||
state.kivyapp.root.ids.sc11.ids.ml.clear_widgets()
|
state.kivyapp.root.ids.sc11.ids.ml.clear_widgets()
|
||||||
state.kivyapp.root.ids.sc11.loadAddresslist(None, 'All', '')
|
state.kivyapp.root.ids.sc11.loadAddresslist(None, 'All', '')
|
||||||
self.addbook_popup.dismiss()
|
self.addbook_popup.dismiss()
|
||||||
|
|
Reference in New Issue
Block a user