From d195784554ccb657983847b7b8e604cc38d17a0f Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Tue, 10 May 2022 13:27:10 +0530 Subject: [PATCH] Add delete query --- src/helper_sent.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/helper_sent.py b/src/helper_sent.py index 1fc98de2..2996939e 100644 --- a/src/helper_sent.py +++ b/src/helper_sent.py @@ -46,3 +46,8 @@ def insert(msgid=None, toAddress='[Broadcast subscribers]', fromAddress=None, su return ackdata else: return None + + +def delete(ack_data): + """Perform Delete query""" + sqlExecute("DELETE FROM sent WHERE ackdata = ?", ack_data)