Add delete query

This commit is contained in:
shekhar-cis 2022-05-10 13:27:10 +05:30
parent 96d80a008a
commit d195784554
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7

View File

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