Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

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...
Cette révision appartient à :
wranai 2017-05-11 21:46:23 +02:00 révisé par Austin
Parent bfb9bf3239
révision 4b810494f3

Voir le fichier

@ -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
}
}