this repo has no description

sdw: don't delete old posts

-6
-6
feeds/sevendirtywords.py
··· 50 dict(uri=post_uri, ts=ts) 51 ) 52 53 - def delete_old_posts(self): 54 - self.db_cnx.execute( 55 - "delete from posts where create_ts < unixepoch('-24 hours')" 56 - ) 57 - 58 def commit_changes(self): 59 self.logger.debug('committing changes') 60 - self.delete_old_posts() 61 self.transaction_commit(self.db_cnx) 62 self.wal_checkpoint(self.db_cnx, 'RESTART') 63
··· 50 dict(uri=post_uri, ts=ts) 51 ) 52 53 def commit_changes(self): 54 self.logger.debug('committing changes') 55 self.transaction_commit(self.db_cnx) 56 self.wal_checkpoint(self.db_cnx, 'RESTART') 57