aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-07-07 18:44:51 +0200
committercedricbonhomme <devnull@localhost>2011-07-07 18:44:51 +0200
commit9722fa927cb268ca88e81d8f9b83ee9cca12a84e (patch)
tree32aecd8e1655c27b1c3538da36f314f25fbebbac
parentMinor changes in the articles.py file. (diff)
downloadnewspipe-9722fa927cb268ca88e81d8f9b83ee9cca12a84e.tar.gz
newspipe-9722fa927cb268ca88e81d8f9b83ee9cca12a84e.tar.bz2
newspipe-9722fa927cb268ca88e81d8f9b83ee9cca12a84e.zip
Minor improvements: the database was readed two time at boot.
-rwxr-xr-xpyAggr3g470r.py8
1 files 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
bgstack15