Permalink
Browse files

It would help if we actually committed the cleanup step, too

  • Loading branch information...
1 parent e6b82e0 commit a2ceaa72ee38fdeda93e0962a993ea158843da8e @ketralnis ketralnis committed Oct 26, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 reddittweeter.py
View
@@ -152,6 +152,7 @@ def main(sourceurl, twitter_username, twitter_password):
# clean up old db items to keep it from ballooning in size
expiry = timegm((datetime.now() - keepfor).timetuple())
session.query(Article).filter(Article.timestamp < expiry).delete()
+ session.commit()
if __name__ == '__main__':

0 comments on commit a2ceaa7

Please sign in to comment.