Fix loading more torrents in conjunction with sorting ( default sorting is broken for now )
This commit is contained in:
parent
615734fd14
commit
08fd243a20
@ -223,13 +223,7 @@ func (db *postgresDatabase) QueryTorrents(
|
||||
{{ end }}
|
||||
FROM torrents
|
||||
{{ if not .FirstPage }}
|
||||
WHERE
|
||||
{{ if not .QueryExists }}
|
||||
{{.OrderOn}}
|
||||
{{ else }}
|
||||
similarity(name, '{{ .Query }}') * -1
|
||||
{{ end }}
|
||||
{{GTEorLTE .Ascending}} {{.LastOrderedValue}}
|
||||
WHERE {{.OrderOn}} {{GTEorLTE .Ascending}} {{.LastOrderedValue}}
|
||||
{{ if .QueryExists }}
|
||||
AND
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user