Fixed Update Query

This commit is contained in:
shekhar-cis 2022-05-25 19:42:12 +05:30
parent ae5a264df0
commit e1c4f368d6
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7

View File

@ -156,9 +156,10 @@ class AddressBook(Screen, HelperAddressBook):
if label in stored_labels and self.address == add_dict[label]:
stored_labels.remove(label)
if label and label not in stored_labels:
sqlExecute(
"UPDATE addressbook SET label = ? WHERE"
" address = ?", label, self.addbook_popup.content_cls.address)
sqlExecute("""
UPDATE addressbook
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.loadAddresslist(None, 'All', '')
self.addbook_popup.dismiss()