From 6b1a1de4ff6fd39eef6afaf39919ec5bd64fb7c5 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Tue, 13 Aug 2024 09:25:09 +1000 Subject: [PATCH] Add missing performer sort options to whitelist 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 0c2f1d78fb4..7ff6f5401a0 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 93d5731e943..81a732dea84 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([