diff --git a/views/results.tpl b/views/results.tpl index 1b48965..5ce028d 100644 --- a/views/results.tpl +++ b/views/results.tpl @@ -32,7 +32,7 @@ %end
%urllabel = d['url'].replace('/'+d['filename'],'').replace('file://','') - %for r in roots: + %for r in config['dirs']: %urllabel = urllabel.replace(r.rsplit('/',1)[0] + '/' , '') %end {{urllabel}} diff --git a/webui.py b/webui.py index 5448869..ec6f68c 100755 --- a/webui.py +++ b/webui.py @@ -22,7 +22,6 @@ RECOLL_CONFS = [ '~/.recoll/recoll.conf', '/etc/recoll.conf' ] # settings defaults DEFAULTS = { - 'prefix': 'z:/', 'context': 30, 'stem': 1, 'timefmt': '%c', @@ -204,7 +203,7 @@ def results(): res, timer = recoll_search(qs, query['sort'], query['ascending']) return { 'res': res, 'time': timer, 'query': query, 'dirs': get_dirs(config['dirs'], config['dirdepth']),'qs': qs, 'sorts': SORTS, 'config': config, - 'query_string': bottle.request.query_string, 'roots': config['dirs'] } + 'query_string': bottle.request.query_string } #}}} #{{{ json @bottle.route('/json')