Update helper_sent

This commit is contained in:
shekhar-cis 2022-07-13 16:06:10 +05:30
parent 0552b32124
commit 530b81a6ef
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7

View File

@ -9,9 +9,9 @@ def insert(t):
sqlExecute('''INSERT INTO sent VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)''', *t)
def delete(ack_data):
import pdb; pdb.set_trace()
# import pdb; pdb.set_trace()
"""Perform delete ack data"""
sqlExecute("DELETE FROM sent WHERE ackdata = ?", ack_data)
rowcount = sqlExecute("DELETE FROM sent WHERE ackdata = ?", ack_data)
def retrieve_message_details(ack_data):
"""Retriving Message details"""
@ -28,5 +28,8 @@ def retrieve_message_details(ack_data):
def trash(ackdata):
# """Mark a message in the `inbox` as `trash`"""
sqlExecute('''UPDATE sent SET folder='trash' WHERE ackdata=?''', ackdata)
rowcount = sqlExecute(
'''UPDATE sent SET folder='trash' WHERE ackdata=?''', ackdata
)
# queues.UISignalQueue.put(('removeInboxRowByMsgid', msgid))
return rowcount