From c000866a44792de4f5dfdfe27ce8c1b2b5e9c27a Mon Sep 17 00:00:00 2001 From: wranai Date: Thu, 11 May 2017 21:46:23 +0200 Subject: [PATCH] Now really fixing the status filter (#354) I managed to screw up in the last update. Normal is 0 and remake is 1, so that makes the "goodness" order of statuses non-monotonic, so I can't use the greater sign for filtering out remakes... --- util/search/search.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/search/search.go b/util/search/search.go index 60472a8f..1b96529b 100644 --- a/util/search/search.go +++ b/util/search/search.go @@ -149,7 +149,7 @@ func searchByQuery(r *http.Request, pagenum int, countAll bool) ( } if search.Status != 0 { if search.Status == common.FilterRemakes { - conditions = append(conditions, "status > ?") + conditions = append(conditions, "status <> ?") } else { conditions = append(conditions, "status >= ?") } @@ -194,4 +194,4 @@ func searchByQuery(r *http.Request, pagenum int, countAll bool) ( return }) return -} +} \ No newline at end of file