Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Fixing the status filter for good (#326)

"Trusted" should include A+ (a.k.a "Trusted A+") torrents as well.
Cette révision appartient à :
wranai 2017-05-11 01:13:54 +02:00 révisé par Austin
Parent ea96f0f041
révision 12bb79b4f5

Voir le fichier

@ -111,9 +111,9 @@ 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 = ?")
conditions = append(conditions, "status >= ?")
}
parameters.Params = append(parameters.Params, strconv.Itoa(int(search.Status)+1))
}