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{
|
var performerSortOptions = sortOptions{
|
||||||
"birthdate",
|
"birthdate",
|
||||||
|
"career_length",
|
||||||
"created_at",
|
"created_at",
|
||||||
"galleries_count",
|
"galleries_count",
|
||||||
"height",
|
"height",
|
||||||
@@ -717,6 +718,7 @@ var performerSortOptions = sortOptions{
|
|||||||
"images_count",
|
"images_count",
|
||||||
"last_o_at",
|
"last_o_at",
|
||||||
"last_played_at",
|
"last_played_at",
|
||||||
|
"measurements",
|
||||||
"name",
|
"name",
|
||||||
"o_counter",
|
"o_counter",
|
||||||
"penis_length",
|
"penis_length",
|
||||||
@@ -726,6 +728,7 @@ var performerSortOptions = sortOptions{
|
|||||||
"scenes_count",
|
"scenes_count",
|
||||||
"tag_count",
|
"tag_count",
|
||||||
"updated_at",
|
"updated_at",
|
||||||
|
"weight",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (qb *PerformerStore) getPerformerSort(findFilter *models.FindFilterType) (string, error) {
|
func (qb *PerformerStore) getPerformerSort(findFilter *models.FindFilterType) (string, error) {
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ const sortByOptions = [
|
|||||||
"play_count",
|
"play_count",
|
||||||
"last_played_at",
|
"last_played_at",
|
||||||
"last_o_at",
|
"last_o_at",
|
||||||
|
"career_length",
|
||||||
|
"weight",
|
||||||
|
"measurements",
|
||||||
]
|
]
|
||||||
.map(ListFilterOptions.createSortBy)
|
.map(ListFilterOptions.createSortBy)
|
||||||
.concat([
|
.concat([
|
||||||
|
|||||||
Reference in New Issue
Block a user