Commit 78ddb207 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

do not set extra_dbs = None to the recoll module, does not like it

parent f410fec2
......@@ -193,7 +193,10 @@ def query_to_recoll_string(q):
#{{{ recoll_initsearch
def recoll_initsearch(q):
config = get_config()
db = recoll.connect(config['confdir'], extra_dbs = config['extradbs'])
if config['extradbs']:
db = recoll.connect(config['confdir'], extra_dbs = config['extradbs'])
else:
db = recoll.connect(config['confdir'])
db.setAbstractParams(config['maxchars'], config['context'])
query = db.query()
query.sortby(q['sort'], q['ascending'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment