view feedupdate.py @ 160:86f828096aaf

Do not fetch and parse the feed twice when creating a new one. Pass the parsed info into the update method instead to reuse.
author dirk
date Mon, 29 Aug 2011 03:07:50 +0200
parents 5b131f82057d
children bb3c851b18b1
line wrap: on
line source

#!/usr/bin/env python

import BackendFactory
import logging

if __name__ == "__main__":
    logging.basicConfig(level=logging.DEBUG)
    backend = BackendFactory.createBackend()
    backend.updateAllFeeds()
    backend.expireFeedEntries()
    backend.dispose()