From 9722fa927cb268ca88e81d8f9b83ee9cca12a84e Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Thu, 7 Jul 2011 18:44:51 +0200 Subject: Minor improvements: the database was readed two time at boot. --- pyAggr3g470r.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 0f8a6743..10c2eabb 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -1129,7 +1129,7 @@ class Root: return html change_feed_url.exposed = True - + def change_feed_name(self, feed_url, new_feed_name): """ Enables to change the name of a feed. @@ -1144,7 +1144,7 @@ class Root: return html change_feed_name.exposed = True - + def change_feed_logo(self, feed_url, new_feed_logo): """ Enables to change the name of a feed. @@ -1342,7 +1342,7 @@ class Root: Monitor the base of feeds if the module gamin is not installed. """ time.sleep(10) - old_time = 0 + old_time = os.path.getmtime(utils.sqlite_base) try: print "Watching %s" % utils.sqlite_base while True: @@ -1380,4 +1380,4 @@ if __name__ == '__main__': thread_watch_base = threading.Thread(None, root.watch_base_classic, None, ()) thread_watch_base.setDaemon(True) thread_watch_base.start() - cherrypy.quickstart(root, config=path) + cherrypy.quickstart(root, config=path) \ No newline at end of file -- cgit