From fbcca2fef386067a0e91a644fc1cb1271392cc3e Mon Sep 17 00:00:00 2001 From: akuma06 Date: Wed, 17 May 2017 23:07:04 +0200 Subject: [PATCH] Fix #570 --- util/search/search.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/search/search.go b/util/search/search.go index c7ca74a7..f02930b2 100644 --- a/util/search/search.go +++ b/util/search/search.go @@ -116,22 +116,22 @@ func searchByQuery(r *http.Request, pagenum int, countAll bool) ( search.Sort = common.Size orderBy += "filesize" // avoid sorting completely breaking on postgres - search.NotNull = "filesize IS NOT NULL" + search.NotNull = "" break case "5": search.Sort = common.Seeders orderBy += "seeders" - search.NotNull = "seeders IS NOT NULL" + search.NotNull = "" break case "6": search.Sort = common.Leechers orderBy += "leechers" - search.NotNull = "leechers IS NOT NULL" + search.NotNull = "" break case "7": search.Sort = common.Completed orderBy += "completed" - search.NotNull = "completed IS NOT NULL" + search.NotNull = "" break default: search.Sort = common.ID