Added descriptions to changes

This commit is contained in:
merlink 2013-08-08 20:27:59 +02:00
parent 87f22008e3
commit dd660d89cd

View File

@ -693,7 +693,7 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
shared.sqlLock.release() shared.sqlLock.release()
if queryreturn != []: if queryreturn != []:
return 'API Error 0016: You are already subscribed to that address.' return 'API Error 0016: You are already subscribed to that address.'
t = (label, address, True, '') t = (label, address, True, '')#Added 4th value, got an error from sqlite
shared.sqlLock.acquire() shared.sqlLock.acquire()
shared.sqlSubmitQueue.put( shared.sqlSubmitQueue.put(
'''INSERT INTO subscriptions VALUES (?,?,?,?)''') '''INSERT INTO subscriptions VALUES (?,?,?,?)''')
@ -1193,8 +1193,8 @@ class Main:
shared.sqlLock.release() shared.sqlLock.release()
if queryreturn != []: if queryreturn != []:
return (address,'AlreadySubscribedError') return (address,'AlreadySubscribedError')
print 'o'*1000
t = (label, address, True, '') t = (label, address, True, '')#Added 4th value, got an error from sqlite
shared.sqlLock.acquire() shared.sqlLock.acquire()
shared.sqlSubmitQueue.put('''INSERT INTO subscriptions VALUES (?,?,?,?)''') shared.sqlSubmitQueue.put('''INSERT INTO subscriptions VALUES (?,?,?,?)''')
shared.sqlSubmitQueue.put(t) shared.sqlSubmitQueue.put(t)
@ -1208,8 +1208,7 @@ class Main:
address = addBMIfNotPresent(address) address = addBMIfNotPresent(address)
t = (address,) t = (address,)
shared.sqlLock.acquire() shared.sqlLock.acquire()
shared.sqlSubmitQueue.put( shared.sqlSubmitQueue.put('''DELETE FROM subscriptions WHERE address=?''')
'''DELETE FROM subscriptions WHERE address=?''')
shared.sqlSubmitQueue.put(t) shared.sqlSubmitQueue.put(t)
shared.sqlReturnQueue.get() shared.sqlReturnQueue.get()
shared.sqlSubmitQueue.put('commit') shared.sqlSubmitQueue.put('commit')