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 à :
Parent
bfb9bf3239
révision
4b810494f3
1 fichiers modifiés avec 2 ajouts et 2 suppressions
|
@ -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 >= ?")
|
||||
}
|
||||
|
|
Référencer dans un nouveau ticket