def get(self): threshold = datetime.now() - timedelta(1) keys = ReplyTo.all().filter('date <', threshold) count = keys.count() db.delete(keys) logging.info('Daily cronjob: deleted %d ReplyTo entitite(s).' % count) threshold = datetime.now() - timedelta(90) keys = InviteCode.all().filter('created <', threshold) count = keys.count() db.delete(keys) logging.info('Daily cronjob: deleted %d InviteCode entitie(s).' % count)