diff --git a/src/helper_sent.py b/src/helper_sent.py index 93395366..681b8cbd 100644 --- a/src/helper_sent.py +++ b/src/helper_sent.py @@ -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 \ No newline at end of file