mirror of https://github.com/stashapp/stash.git
Add missing performer sort options to whitelist (#5129)
Adds career length, measurements and weight.
This commit is contained in:
parent
ecb53cee55
commit
a94bf29b34
|
@ -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([
|
||||
|
|
Loading…
Reference in New Issue