Switch to unified view

a/webui.py b/webui.py
...
...
192
@bottle.view('results')
192
@bottle.view('results')
193
def results():
193
def results():
194
    config = get_config()
194
    config = get_config()
195
    query = get_query()
195
    query = get_query()
196
    qs = query_to_recoll_string(query)
196
    qs = query_to_recoll_string(query)
197
    pprint(query)
198
    res, timer = recoll_search(qs, query['sort'], query['ascending'])
197
    res, timer = recoll_search(qs, query['sort'], query['ascending'])
199
    return { 'res': res, 'time': timer, 'query': query, 'dirs':
198
    return { 'res': res, 'time': timer, 'query': query, 'dirs':
200
            get_dirs(config['dirs'], config['dirdepth']),'qs': qs, 'sorts': SORTS, 'config': config,
199
            get_dirs(config['dirs'], config['dirdepth']),'qs': qs, 'sorts': SORTS, 'config': config,
201
            'query_string': bottle.request.query_string, 'roots': config['dirs'] }
200
            'query_string': bottle.request.query_string, 'roots': config['dirs'] }
202
#}}}
201
#}}}