# HG changeset patch # User Dirk Olmes # Date 1314018362 -7200 # Node ID 5bb58c956e480bb2faabce05684cfe4b0ccf6733 # Parent 32a173cb081cc0a2adc03549a2fee5b4f7d631a8 get rid of the toplevel util module, in only contained unused functions diff -r 32a173cb081c -r 5bb58c956e48 util.py --- a/util.py Mon Aug 22 15:04:53 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - -from Feed import Feed -from datetime import datetime, timedelta -import logging - -logger = logging.getLogger("database") - -def loadFeeds(session=None, filename="feeds.txt"): - file = open(filename) - for line in file: - (title, rss_url) = line.split("|") - # remove the newline - rss_url = rss_url.rstrip() - feed = Feed(title, rss_url) - session.add(feed) - file.close() - session.commit() - -def forceUpdateAllFeeds(session=None): - for feed in Feed.all(session): - feed.next_update = datetime.now() - timedelta(minutes=1) - session.commit() -