mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
WebUI: Implement server-side sorting.
This commit is contained in:
@@ -189,7 +189,10 @@ void RequestHandler::action_public_images()
|
||||
void RequestHandler::action_json_torrents()
|
||||
{
|
||||
const QStringMap& gets = request().gets;
|
||||
print(btjson::getTorrents(gets["filter"], gets["label"]), CONTENT_TYPE_JS);
|
||||
|
||||
print(btjson::getTorrents(
|
||||
gets["filter"], gets["label"], gets["sort"], gets["reverse"] == "true"
|
||||
), CONTENT_TYPE_JS);
|
||||
}
|
||||
|
||||
void RequestHandler::action_json_preferences()
|
||||
|
||||
Reference in New Issue
Block a user