mirror of
https://github.com/stashapp/stash.git
synced 2025-12-16 20:07:05 +03:00
Add missing performer sort options to whitelist (#5129)
Adds career length, measurements and weight.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -30,6 +30,9 @@ const sortByOptions = [
|
||||
"play_count",
|
||||
"last_played_at",
|
||||
"last_o_at",
|
||||
"career_length",
|
||||
"weight",
|
||||
"measurements",
|
||||
]
|
||||
.map(ListFilterOptions.createSortBy)
|
||||
.concat([
|
||||
|
||||
Reference in New Issue
Block a user