Обновлены зависимости, 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