From 998768bcf2c3308611a05a4518e7ef3fbcb473cc Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 2 Dec 2022 23:06:08 -0800 Subject: [PATCH] New: Filter by Custom Format Score in Interactive Search --- frontend/src/Store/Actions/releaseActions.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/Store/Actions/releaseActions.js b/frontend/src/Store/Actions/releaseActions.js index ee36d3e99..27c386b76 100644 --- a/frontend/src/Store/Actions/releaseActions.js +++ b/frontend/src/Store/Actions/releaseActions.js @@ -31,6 +31,7 @@ export const defaultState = { age: function(item, direction) { return item.ageMinutes; }, + peers: function(item, direction) { const seeders = item.seeders || 0; const leechers = item.leechers || 0; @@ -45,6 +46,7 @@ export const defaultState = { return item.languages[0].id; }, + rejections: function(item, direction) { const rejections = item.rejections; const releaseWeight = item.releaseWeight; @@ -110,6 +112,7 @@ export const defaultState = { return predicate(languages, filterValue); }, + rejectionCount: function(item, value, type) { const rejectionCount = item.rejections.length; @@ -231,6 +234,11 @@ export const defaultState = { return genreList.sort(sortByName); } }, + { + name: 'customFormatScore', + label: 'Custom Format Score', + type: filterBuilderTypes.NUMBER + }, { name: 'rejectionCount', label: 'Rejection Count',