| 55 | print 'Address:', address, '\tTime first broadcast:', unicode(strftime('%a, %d %b %Y %I:%M %p',localtime(time)),'utf-8'), '\tUsed by me personally:', usedpersonally, '\tFull pubkey message:', hexlify(transmitdata) |
| 56 | |
| 57 | def readInventory(): |
| 58 | print 'Printing everything in inventory table:' |
| 59 | item = '''select hash, objecttype, streamnumber, payload, expirestime from inventory''' |
| 60 | parameters = '' |
| 61 | cur.execute(item, parameters) |
| 62 | output = cur.fetchall() |
| 63 | for row in output: |
| 64 | hash, objecttype, streamnumber, payload, expirestime = row |
| 65 | print 'Hash:', hexlify(hash), objecttype, streamnumber, '\t', hexlify(payload), '\t', unicode(strftime('%a, %d %b %Y %I:%M %p',localtime(expirestime)),'utf-8') |
| 66 | |
| 67 | |
| 68 | def takeInboxMessagesOutOfTrash(): |