view feedupdate.py @ 223:f07cf25224a4

do not use python3 - the couchdb lib is not ready for it
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 22 May 2014 05:24:53 +0200
parents a383abe2e81a
children
line wrap: on
line source

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import BackendFactory
import logging

if __name__ == "__main__":
    logFormat = '%(asctime)s ' + logging.BASIC_FORMAT
    logging.basicConfig(format=logFormat, level=logging.DEBUG)
    backend = BackendFactory.createBackend()
    backend.updateAllFeeds()
    backend.expireFeedEntries()
    backend.dispose()