From e1c4f368d6e26f707e4e278ce1571fbc50026518 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Wed, 25 May 2022 19:42:12 +0530 Subject: [PATCH] Fixed Update Query --- src/bitmessagekivy/baseclass/addressbook.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bitmessagekivy/baseclass/addressbook.py b/src/bitmessagekivy/baseclass/addressbook.py index dd20d181..d0153348 100644 --- a/src/bitmessagekivy/baseclass/addressbook.py +++ b/src/bitmessagekivy/baseclass/addressbook.py @@ -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()