use helper_sql for helper_sent

This commit is contained in:
Grant T. Olson 2013-08-29 07:27:09 -04:00
parent 8b750be136
commit d879e35e26
1 changed files with 2 additions and 9 deletions

View File

@ -1,11 +1,4 @@
import shared
from helper_sql import *
def insert(t):
shared.sqlLock.acquire()
shared.sqlSubmitQueue.put(
'''INSERT INTO sent VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)''')
shared.sqlSubmitQueue.put(t)
shared.sqlReturnQueue.get()
shared.sqlSubmitQueue.put('commit')
shared.sqlLock.release()
sqlExecute('''INSERT INTO sent VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)''', *t)