mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +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:
@@ -29,7 +29,6 @@ const (
|
||||
ethnicity = "ethnicity"
|
||||
eyeColor = "eyeColor"
|
||||
fakeTits = "fakeTits"
|
||||
gender = "gender"
|
||||
instagram = "instagram"
|
||||
measurements = "measurements"
|
||||
piercings = "piercings"
|
||||
@@ -42,10 +41,15 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
aliases = []string{"alias1", "alias2"}
|
||||
rating = 5
|
||||
height = 123
|
||||
weight = 60
|
||||
genderEnum = models.GenderEnumFemale
|
||||
gender = genderEnum.String()
|
||||
aliases = []string{"alias1", "alias2"}
|
||||
rating = 5
|
||||
height = 123
|
||||
weight = 60
|
||||
penisLength = 1.23
|
||||
circumcisedEnum = models.CircumisedEnumCut
|
||||
circumcised = circumcisedEnum.String()
|
||||
)
|
||||
|
||||
var imageBytes = []byte("imageBytes")
|
||||
@@ -81,8 +85,10 @@ func createFullPerformer(id int, name string) *models.Performer {
|
||||
Ethnicity: ethnicity,
|
||||
EyeColor: eyeColor,
|
||||
FakeTits: fakeTits,
|
||||
PenisLength: &penisLength,
|
||||
Circumcised: &circumcisedEnum,
|
||||
Favorite: true,
|
||||
Gender: gender,
|
||||
Gender: &genderEnum,
|
||||
Height: &height,
|
||||
Instagram: instagram,
|
||||
Measurements: measurements,
|
||||
@@ -125,6 +131,8 @@ func createFullJSONPerformer(name string, image string) *jsonschema.Performer {
|
||||
Ethnicity: ethnicity,
|
||||
EyeColor: eyeColor,
|
||||
FakeTits: fakeTits,
|
||||
PenisLength: penisLength,
|
||||
Circumcised: circumcised,
|
||||
Favorite: true,
|
||||
Gender: gender,
|
||||
Height: strconv.Itoa(height),
|
||||
|
||||
Reference in New Issue
Block a user