replaced double quotes with Single quotes in class_singleWorker module

This commit is contained in:
navjot 2020-10-14 21:06:20 +05:30
parent a7c1018f47
commit 6c5bb62123
No known key found for this signature in database
GPG Key ID: 9EE70AFD71357F1C
1 changed files with 4 additions and 3 deletions

View File

@ -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):