Switch to side-by-side view
--- a/webui.py +++ b/webui.py @@ -27,6 +27,7 @@ 'timefmt': '%c', 'dirdepth': 3, 'maxchars': 500, + 'maxresults': 100, } # sort fields/labels @@ -165,7 +166,7 @@ nres = query.execute(q, int(config['stem'])) except: nres = 0 - for i in range(0, nres): + for i in range(0, min(nres, int(config['maxresults']))): doc = query.fetchone() d = {} for f in FIELDS: