From 6c5bb62123f89809b538e247b078342ba5d55ad3 Mon Sep 17 00:00:00 2001 From: navjot Date: Wed, 14 Oct 2020 21:06:20 +0530 Subject: [PATCH] replaced double quotes with Single quotes in class_singleWorker module --- src/class_singleWorker.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/class_singleWorker.py b/src/class_singleWorker.py index b0cbfb69..499cb82f 100644 --- a/src/class_singleWorker.py +++ b/src/class_singleWorker.py @@ -109,7 +109,7 @@ class singleWorker(StoppableThread): newack = '\x00\x00\x00\x02\x01\x01' + oldack state.ackdataForWhichImWatching[newack] = 0 sqlExecute( - 'UPDATE sent SET ackdata=? WHERE ackdata=? AND folder = "sent" ', + '''UPDATE sent SET ackdata=? WHERE ackdata=? AND folder = 'sent' ''', newack, oldack ) del state.ackdataForWhichImWatching[oldack] @@ -682,8 +682,8 @@ class singleWorker(StoppableThread): # Update the status of the message in the 'sent' table to have # a 'broadcastsent' status sqlExecute( - 'UPDATE sent SET msgid=?, status=?, lastactiontime=?' - ' WHERE ackdata=? AND folder="sent" ', + '''UPDATE sent SET msgid=?, status=?, lastactiontime=? ''' + ''' WHERE ackdata=? AND folder='sent' ''', inventoryHash, 'broadcastsent', int(time.time()), ackdata ) @@ -1304,6 +1304,7 @@ class singleWorker(StoppableThread): inventoryHash, newStatus, retryNumber + 1, sleepTill, int(time.time()), ackdata ) + # If we are sending to ourselves or a chan, let's put # the message in our own inbox. if BMConfigParser().has_section(toaddress):