new API method needs to use helper_sql
This commit is contained in:
parent
b5873187bf
commit
03ce8ba8fb
|
@ -462,13 +462,8 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
if len(params) == 0:
|
if len(params) == 0:
|
||||||
raise APIError(0, 'I need parameters!')
|
raise APIError(0, 'I need parameters!')
|
||||||
ackdata = self._decode(params[0], "hex")
|
ackdata = self._decode(params[0], "hex")
|
||||||
t = (ackdata,)
|
sqlExecute('''UPDATE sent SET folder='trash' WHERE ackdata=?''',
|
||||||
shared.sqlLock.acquire()
|
ackdata)
|
||||||
shared.sqlSubmitQueue.put('''UPDATE sent SET folder='trash' WHERE ackdata=?''')
|
|
||||||
shared.sqlSubmitQueue.put(t)
|
|
||||||
shared.sqlReturnQueue.get()
|
|
||||||
shared.sqlSubmitQueue.put('commit')
|
|
||||||
shared.sqlLock.release()
|
|
||||||
return 'Trashed sent message (assuming message existed).'
|
return 'Trashed sent message (assuming message existed).'
|
||||||
elif method == 'sendMessage':
|
elif method == 'sendMessage':
|
||||||
if len(params) == 0:
|
if len(params) == 0:
|
||||||
|
|
Reference in New Issue
Block a user