Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Cette révision appartient à :
akuma06 2017-05-17 23:07:04 +02:00
Parent 3d089c849a
révision fbcca2fef3

Voir le fichier

@ -116,22 +116,22 @@ func searchByQuery(r *http.Request, pagenum int, countAll bool) (
search.Sort = common.Size
orderBy += "filesize"
// avoid sorting completely breaking on postgres
search.NotNull = "filesize IS NOT NULL"
search.NotNull = ""
break
case "5":
search.Sort = common.Seeders
orderBy += "seeders"
search.NotNull = "seeders IS NOT NULL"
search.NotNull = ""
break
case "6":
search.Sort = common.Leechers
orderBy += "leechers"
search.NotNull = "leechers IS NOT NULL"
search.NotNull = ""
break
case "7":
search.Sort = common.Completed
orderBy += "completed"
search.NotNull = "completed IS NOT NULL"
search.NotNull = ""
break
default:
search.Sort = common.ID