Various small changes #21

Merged
Atheros1 merged 5 commits from master into master 2013-01-04 23:37:15 +01:00
Showing only changes of commit c65238d3d2 - Show all commits

View File

@ -1046,7 +1046,7 @@ class receiveDataThread(QThread):
print 'we have the public key. sending it.' print 'we have the public key. sending it.'
#We have it. Let's send it. #We have it. Let's send it.
for row in queryreturn: for row in queryreturn:
hash, timeLastRequested = row hash, transmitdata, timeLastRequested = row
if timeLastRequested < int(time.time())+604800: #if the last time anyone asked about this hash was this week, extend the time. if timeLastRequested < int(time.time())+604800: #if the last time anyone asked about this hash was this week, extend the time.
t = (int(time.time())+604800,hash) t = (int(time.time())+604800,hash)
sqlSubmitQueue.put('''UPDATE pubkeys set time=? WHERE hash=? ''') sqlSubmitQueue.put('''UPDATE pubkeys set time=? WHERE hash=? ''')