14 lines
341 B
Python
14 lines
341 B
Python
"""
|
|
Insert values into sent table
|
|
"""
|
|
from helper_sql import sqlExecute
|
|
|
|
|
|
def insert(t):
|
|
"""Perform an insert into the `sent` table"""
|
|
sqlExecute('''INSERT INTO sent VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)''', *t)
|
|
|
|
def delete(ack_data):
|
|
"""Perform delete ack data"""
|
|
sqlExecute("DELETE FROM sent WHERE ackdata = ?", ack_data)
|