From 16194a12a39a911bb03bfd3a20797456c7c98185 Mon Sep 17 00:00:00 2001 From: TheAMM Date: Sat, 27 May 2017 21:37:26 +0300 Subject: [PATCH] Fix typo in ES search sort keys --- nyaa/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyaa/search.py b/nyaa/search.py index 4db2879..976ad5c 100644 --- a/nyaa/search.py +++ b/nyaa/search.py @@ -25,7 +25,7 @@ def search_elastic(term='', user=None, sort='id', order='desc', 'id': 'id', 'size': 'filesize', # 'name': 'display_name', # This is slow and buggy - 'comments': 'comments_count', + 'comments': 'comment_count', 'seeders': 'seed_count', 'leechers': 'leech_count', 'downloads': 'download_count'