diff options
author | Pierre-Yves Chibon <pingou@pingoured.fr> | 2012-05-14 21:48:21 +0200 |
---|---|---|
committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2012-05-14 21:48:21 +0200 |
commit | e152a55bba8c960dca34594bb515656f5985b14b (patch) | |
tree | 16f4eb8cfea664ceb6d10131e224962cf77db708 | |
parent | fcd4c8795ee0d5a3755eedf9146655514c4e14bb (diff) | |
download | kittystore-e152a55bba8c960dca34594bb515656f5985b14b.tar.gz kittystore-e152a55bba8c960dca34594bb515656f5985b14b.tar.xz kittystore-e152a55bba8c960dca34594bb515656f5985b14b.zip |
Adjust to the list name and print out the first email retrieved in a time period
-rw-r--r-- | test.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -5,7 +5,7 @@ from kittystore.kittysastore import KittySAStore if __name__ == '__main__': URL = 'postgres://mm3:mm3@localhost/mm3' - TABLE = 'email' + TABLE = 'devel' STORE = KittySAStore(URL)#, debug=True) #create(URL) print STORE.get_email(TABLE, @@ -14,6 +14,7 @@ if __name__ == '__main__': START = datetime.datetime(2012, 3, 1) END = datetime.datetime(2012, 3, 30) print len(STORE.get_archives(TABLE, START, END)) + print STORE.get_archives(TABLE, START, END)[0] print STORE.get_thread_length(TABLE, '4FCWUV6BCP3A5PASNFX6L5JOAE4GJ7F2') print STORE.get_thread_participants(TABLE, |