mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Add penis length and circumcision stats to performers. (#3627)
* Add penis length stat to performers. * Modified the UI to display and edit the stat. * Added the ability to filter floats to allow filtering by penis length. * Add circumcision stat to performer. * Refactor enum filtering * Change boolean filter to radio buttons * Return null for empty enum values --------- Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -31,3 +31,13 @@ func StrFormat(format string, m StrFormatMap) string {
|
||||
|
||||
return strings.NewReplacer(args...).Replace(format)
|
||||
}
|
||||
|
||||
// StringerSliceToStringSlice converts a slice of fmt.Stringers to a slice of strings.
|
||||
func StringerSliceToStringSlice[V fmt.Stringer](v []V) []string {
|
||||
ret := make([]string, len(v))
|
||||
for i, vv := range v {
|
||||
ret[i] = vv.String()
|
||||
}
|
||||
|
||||
return ret
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user