expect dict-based COUCHDB_DATABASES config
authorStefan Kögl <stefan@skoegl.net>
Sat, 27 Apr 2013 11:52:26 +0000 (27 13:52 +0200)
committerStefan Kögl <stefan@skoegl.net>
Sat, 27 Apr 2013 11:52:46 +0000 (27 13:52 +0200)
mygpo/db/couchdb/management/commands/touch-couchdb-views.py

index 7608adf..1d6494f 100644 (file)
@@ -25,7 +25,7 @@ class Command(BaseCommand):
 
 
     def handle(self, *args, **options):
-        db_urls = set(db[1] for db in settings.COUCHDB_DATABASES)
+        db_urls = set(db['URL'] for db in settings.COUCHDB_DATABASES.values())
 
         filters = []