sportscult: use join for categories filter (#14206)

This commit is contained in:
Bogdan
2023-04-02 19:09:20 +03:00
committed by GitHub
parent 97c4a976c7
commit 1119f10c22

View File

@@ -123,7 +123,7 @@ search:
inputs: inputs:
page: torrents page: torrents
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
category: "{{ if .Categories }}{{ range .Categories }}{{.}};{{end}}{{ else }}0{{ end }}" category: "{{ if .Categories }}{{ join .Categories \";\" }}{{ else }}0{{ end }}"
# 0 all, 1 active, 2 dead # 0 all, 1 active, 2 dead
active: 0 active: 0
gold: "{{ if .Config.freeleech }}3{{ else }}0{{ end }}" gold: "{{ if .Config.freeleech }}3{{ else }}0{{ end }}"