fix repair; repair.json, remove arr details from endpoint

This commit is contained in:
Mukhtar Akere
2025-03-12 04:53:01 +01:00
parent a30861984c
commit c0589d4ad2
5 changed files with 32 additions and 34 deletions

View File

@@ -152,7 +152,7 @@ func (q *QBit) handleTorrentsInfo(w http.ResponseWriter, r *http.Request) {
category := ctx.Value("category").(string)
filter := strings.Trim(r.URL.Query().Get("filter"), "")
hashes, _ := ctx.Value("hashes").([]string)
torrents := q.Storage.GetAll(category, filter, hashes)
torrents := q.Storage.GetAllSorted(category, filter, hashes, "added_on", false)
request.JSONResponse(w, torrents, http.StatusOK)
}