Fixing the status filter for good (#326)
"Trusted" should include A+ (a.k.a "Trusted A+") torrents as well.
Cette révision appartient à :
Parent
ea96f0f041
révision
12bb79b4f5
1 fichiers modifiés avec 2 ajouts et 2 suppressions
|
@ -111,9 +111,9 @@ func searchByQuery(r *http.Request, pagenum int, countAll bool) (
|
||||||
}
|
}
|
||||||
if search.Status != 0 {
|
if search.Status != 0 {
|
||||||
if search.Status == common.FilterRemakes {
|
if search.Status == common.FilterRemakes {
|
||||||
conditions = append(conditions, "status != ?")
|
conditions = append(conditions, "status > ?")
|
||||||
} else {
|
} else {
|
||||||
conditions = append(conditions, "status = ?")
|
conditions = append(conditions, "status >= ?")
|
||||||
}
|
}
|
||||||
parameters.Params = append(parameters.Params, strconv.Itoa(int(search.Status)+1))
|
parameters.Params = append(parameters.Params, strconv.Itoa(int(search.Status)+1))
|
||||||
}
|
}
|
||||||
|
|
Référencer dans un nouveau ticket