Switch to unified view

a/webui.py b/webui.py
...
...
24
    'prefix': 'z:/',
24
    'prefix': 'z:/',
25
    'context': 30,
25
    'context': 30,
26
    'stem': 1,
26
    'stem': 1,
27
    'timefmt': '%c',
27
    'timefmt': '%c',
28
    'dirdepth': 3,
28
    'dirdepth': 3,
29
    'maxchars': 500,
29
}
30
}
30
31
31
# sort fields/labels
32
# sort fields/labels
32
SORTS = [
33
SORTS = [
33
    ("mtime", "Date",),
34
    ("mtime", "Date",),
...
...
150
def recoll_search(q, sort, ascending):
151
def recoll_search(q, sort, ascending):
151
    config = get_config()
152
    config = get_config()
152
    tstart = datetime.datetime.now()
153
    tstart = datetime.datetime.now()
153
    results = []
154
    results = []
154
    db = recoll.connect()
155
    db = recoll.connect()
155
    db.setAbstractParams(contextwords=int(config['context']), maxchars=5000)
156
    db.setAbstractParams(contextwords=int(config['context']), maxchars=config['maxchars'])
156
    query = db.query()
157
    query = db.query()
157
    query.sortby(sort, int(ascending))
158
    query.sortby(sort, int(ascending))
158
    try:
159
    try:
159
        nres = query.execute(q, stemming=int(config['stem']))
160
        nres = query.execute(q, stemming=int(config['stem']))
160
    except:
161
    except: