changeset 134:40163eac0d27

rename feedupdate-main to feedupdate, adjust the launch script
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 23 Aug 2011 03:49:29 +0200
parents 9e1e6b96d8b0
children b2ef673607e3
files feedupdate-main.py feedupdate.py feedupdate.sh
diffstat 3 files changed, 14 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/feedupdate-main.py	Tue Aug 23 03:44:08 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-#!/usr/bin/env python
-
-import logging
-from backend.sqlalchemy.SqlAlchemyBackend import SqlAlchemyBackend
-
-if __name__ == "__main__":
-    logging.basicConfig(level=logging.DEBUG)
-    backend = SqlAlchemyBackend()
-    backend.updateAllFeeds()
-    backend.expireFeedEntries()
-    backend.dispose()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/feedupdate.py	Tue Aug 23 03:49:29 2011 +0200
@@ -0,0 +1,13 @@
+#!/usr/bin/env python
+
+import logging
+#from backend.sqlalchemy.SqlAlchemyBackend import SqlAlchemyBackend
+from backend.couchdb.CouchDbBackend import CouchDbBackend
+
+if __name__ == "__main__":
+    logging.basicConfig(level=logging.DEBUG)
+#    backend = SqlAlchemyBackend()
+    backend = CouchDbBackend()
+    backend.updateAllFeeds()
+    backend.expireFeedEntries()
+    backend.dispose()
--- a/feedupdate.sh	Tue Aug 23 03:44:08 2011 +0200
+++ b/feedupdate.sh	Tue Aug 23 03:49:29 2011 +0200
@@ -1,4 +1,4 @@
 #!/bin/bash
 DB_URL="mysql://root:mysql@xanthippe/feedworm?use_unicode=1&charset=utf8"
 
-./feedupdate-main.py ${DB_URL}
+./feedupdate.py ${DB_URL}