From 8a6d1d9cd5ef1d26c6080d8bf14f3fcbbe2ef5c3 Mon Sep 17 00:00:00 2001 From: "Grant T. Olson" Date: Thu, 29 Aug 2013 10:00:27 -0400 Subject: [PATCH] Fix regression where I couldn't add a subscription --- src/shared.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared.py b/src/shared.py index 0aa69558..265466ca 100644 --- a/src/shared.py +++ b/src/shared.py @@ -160,7 +160,7 @@ def isAddressInMyAddressBook(address): #At this point we should really just have a isAddressInMy(book, address)... def isAddressInMySubscriptionsList(address): - queryreturn = ( + queryreturn = sqlQuery( '''select * from subscriptions where address=?''', str(address)) return queryreturn != [] @@ -173,7 +173,7 @@ def isAddressInMyAddressBookSubscriptionsListOrWhitelist(address): if queryreturn <> []: return True - queryreturn = ( + queryreturn = sqlQuery( '''select address from subscriptions where address=? and enabled = '1' ''', address) if queryreturn <> []: