Update helper_sent
This commit is contained in:
parent
0552b32124
commit
530b81a6ef
|
@ -9,9 +9,9 @@ def insert(t):
|
||||||
sqlExecute('''INSERT INTO sent VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)''', *t)
|
sqlExecute('''INSERT INTO sent VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)''', *t)
|
||||||
|
|
||||||
def delete(ack_data):
|
def delete(ack_data):
|
||||||
import pdb; pdb.set_trace()
|
# import pdb; pdb.set_trace()
|
||||||
"""Perform delete ack data"""
|
"""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):
|
def retrieve_message_details(ack_data):
|
||||||
"""Retriving Message details"""
|
"""Retriving Message details"""
|
||||||
|
@ -28,5 +28,8 @@ def retrieve_message_details(ack_data):
|
||||||
|
|
||||||
def trash(ackdata):
|
def trash(ackdata):
|
||||||
# """Mark a message in the `inbox` as `trash`"""
|
# """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))
|
# queues.UISignalQueue.put(('removeInboxRowByMsgid', msgid))
|
||||||
|
return rowcount
|
Reference in New Issue
Block a user