Обновлены зависимости, sort results (ratio) anyway

This commit is contained in:
Jack Stdin 2016-02-18 12:56:33 +03:00
parent 9c68353232
commit 5d9be67b00
2 changed files with 2 additions and 3 deletions

View File

@ -134,7 +134,6 @@ class SphinxSearch:
results.append(
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

View File

@ -5,5 +5,5 @@ PySimpleSOAP==1.16
python-Levenshtein==0.12.0
enum34>=1.0.0
rarfile
requests==2.8.1
requests>=2.8.1
soap2py==1.16