summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Yves Chibon <pingou@pingoured.fr>2012-05-14 21:48:21 +0200
committerPierre-Yves Chibon <pingou@pingoured.fr>2012-05-14 21:48:21 +0200
commite152a55bba8c960dca34594bb515656f5985b14b (patch)
tree16f4eb8cfea664ceb6d10131e224962cf77db708
parentfcd4c8795ee0d5a3755eedf9146655514c4e14bb (diff)
downloadkittystore-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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test.py b/test.py
index c4959b8..93f2f3d 100644
--- a/test.py
+++ b/test.py
@@ -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,