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 }}
|
{{ end }}
|
||||||
FROM torrents
|
FROM torrents
|
||||||
{{ if not .FirstPage }}
|
{{ if not .FirstPage }}
|
||||||
WHERE
|
WHERE {{.OrderOn}} {{GTEorLTE .Ascending}} {{.LastOrderedValue}}
|
||||||
{{ if not .QueryExists }}
|
|
||||||
{{.OrderOn}}
|
|
||||||
{{ else }}
|
|
||||||
similarity(name, '{{ .Query }}') * -1
|
|
||||||
{{ end }}
|
|
||||||
{{GTEorLTE .Ascending}} {{.LastOrderedValue}}
|
|
||||||
{{ if .QueryExists }}
|
{{ if .QueryExists }}
|
||||||
AND
|
AND
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user