comparison util.py @ 43:12ed8b5fa08c

first system preference: configure app to stat maximized.
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 14 May 2010 08:31:46 +0200
parents 22214d79ed41
children 03358c113170
comparison
equal deleted inserted replaced
42:0c0d1760b737 43:12ed8b5fa08c
23 23
24 def forceUpdateAllFeeds(session=None): 24 def forceUpdateAllFeeds(session=None):
25 for feed in Feed.all(session): 25 for feed in Feed.all(session):
26 feed.next_update = datetime.now() - timedelta(minutes=1) 26 feed.next_update = datetime.now() - timedelta(minutes=1)
27 session.commit() 27 session.commit()
28
29 def str2bool(string):
30 return string.lower() in ["yes", "true", "t", "1"]