Обновлены зависимости, sort results (ratio) anyway
This commit is contained in:
parent
9c68353232
commit
5d9be67b00
@ -134,7 +134,6 @@ class SphinxSearch:
|
|||||||
results.append(
|
results.append(
|
||||||
dict(aoid=ma['attrs']['aoid'], text=ma['attrs']['fullname'], ratio=ma['weight'], cort=i))
|
dict(aoid=ma['attrs']['aoid'], text=ma['attrs']['fullname'], ratio=ma['weight'], cort=i))
|
||||||
|
|
||||||
if strong:
|
|
||||||
results.sort(key=lambda x: Levenshtein.ratio(text, x['text']), reverse=True)
|
results.sort(key=lambda x: Levenshtein.ratio(text, x['text']), reverse=True)
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
@ -5,5 +5,5 @@ PySimpleSOAP==1.16
|
|||||||
python-Levenshtein==0.12.0
|
python-Levenshtein==0.12.0
|
||||||
enum34>=1.0.0
|
enum34>=1.0.0
|
||||||
rarfile
|
rarfile
|
||||||
requests==2.8.1
|
requests>=2.8.1
|
||||||
soap2py==1.16
|
soap2py==1.16
|
||||||
|
Loading…
x
Reference in New Issue
Block a user