comparison feedupdate-main.py @ 109:bf22b32ae9f7

expire articles only after 90 days, it seems some feeds keep sending very old stuff
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 29 Mar 2011 04:06:50 +0200
parents d20e99d46d78
children 43c234c8fe87
comparison
equal deleted inserted replaced
107:863599e84269 109:bf22b32ae9f7
27 ) 27 )
28 deleteStatement.execute() 28 deleteStatement.execute()
29 29
30 def _calculateExpireDate(): 30 def _calculateExpireDate():
31 now = datetime.now() 31 now = datetime.now()
32 delta = timedelta(days=30) 32 delta = timedelta(days=90)
33 return now - delta 33 return now - delta
34 34
35 if __name__ == "__main__": 35 if __name__ == "__main__":
36 util.configureLogging() 36 util.configureLogging()
37 session = Database.createSession() 37 session = Database.createSession()