human
Solve the following python programming problem given the following code:
def main(global_config, **settings) : 
    ' This function returns a Pyramid WSGI application.
    ' 
    config = Configurator (settings = settings) 
    config.registry.db = Server (uri = global_config ['couchdb.uri']) 
    def add_couchdb(request) : 
        db = config.registry.db.get_db (settings ['couchdb.db']) 
        return db 
config.add_request_method (add_couchdb, 'db', reify = True) 
    config.add_static_view ('static', 'static', cache_max_age = 3600) 
    config.add_route ('home', '/') 
    config.scan () 
    return config.make_wsgi_app () 

    
    

    Fix the buggy line: config.registry.db = Server (uri = global_config ['couchdb.uri'])
assistant
#Here is Python program to fix the buggy line: config.

config.registry.db = Server (uri = settings ['couchdb.uri'])