diff backend/couchdb/CouchDb.py @ 178:e8cc86981938

default DB name is feedworm, fix setting the dbname via commandline parameter
author dirk
date Sat, 10 Sep 2011 04:26:13 +0200
parents 57e324fa4350
children a4832a180c69
line wrap: on
line diff
--- a/backend/couchdb/CouchDb.py	Sat Sep 10 03:09:17 2011 +0200
+++ b/backend/couchdb/CouchDb.py	Sat Sep 10 04:26:13 2011 +0200
@@ -1,7 +1,7 @@
 
 from argparse import ArgumentParser
 
-database = "feedtest"
+database = "feedworm"
 
 def init():
     parser = ArgumentParser()
@@ -9,6 +9,7 @@
     args = parser.parse_known_args()
     dbname = args[0].dbname
     if dbname is not None:
+        global database
         database = dbname
 
 #