fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix pipeline css in audiobook
[wolnelektury.git]
/
src
/
search
/
index.py
diff --git
a/src/search/index.py
b/src/search/index.py
index
70214c5
..
0bd5c05
100644
(file)
--- a/
src/search/index.py
+++ b/
src/search/index.py
@@
-670,7
+670,7
@@
class SearchResult(object):
m.update(f[self.OTHER])
hits.append(m)
- hits.sort(
lambda a, b: cmp(a['score'], b['score'])
, reverse=True)
+ hits.sort(
key=lambda h: h['score']
, reverse=True)
self._processed_hits = hits