From a94bf29b347254b601d3ac91eaeead2369a9a130 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Tue, 13 Aug 2024 16:13:15 +1000 Subject: [PATCH] Add missing performer sort options to whitelist (#5129) Adds career length, measurements and weight. --- pkg/sqlite/performer.go | 3 +++ ui/v2.5/src/models/list-filter/performers.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pkg/sqlite/performer.go b/pkg/sqlite/performer.go index 0c2f1d78f..7ff6f5401 100644 --- a/pkg/sqlite/performer.go +++ b/pkg/sqlite/performer.go @@ -710,6 +710,7 @@ func (qb *PerformerStore) sortByLastPlayedAt(direction string) string { var performerSortOptions = sortOptions{ "birthdate", + "career_length", "created_at", "galleries_count", "height", @@ -717,6 +718,7 @@ var performerSortOptions = sortOptions{ "images_count", "last_o_at", "last_played_at", + "measurements", "name", "o_counter", "penis_length", @@ -726,6 +728,7 @@ var performerSortOptions = sortOptions{ "scenes_count", "tag_count", "updated_at", + "weight", } func (qb *PerformerStore) getPerformerSort(findFilter *models.FindFilterType) (string, error) { diff --git a/ui/v2.5/src/models/list-filter/performers.ts b/ui/v2.5/src/models/list-filter/performers.ts index 93d5731e9..81a732dea 100644 --- a/ui/v2.5/src/models/list-filter/performers.ts +++ b/ui/v2.5/src/models/list-filter/performers.ts @@ -30,6 +30,9 @@ const sortByOptions = [ "play_count", "last_played_at", "last_o_at", + "career_length", + "weight", + "measurements", ] .map(ListFilterOptions.createSortBy) .concat([