changeset 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 98eaf0075a44
children c8393c2cd324
files backend/couchdb/CouchDb.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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
 
 #