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:
@@ -228,6 +228,10 @@ func Test_scrapedToPerformerInput(t *testing.T) {
|
||||
return &d
|
||||
}
|
||||
|
||||
genderPtr := func(g models.GenderEnum) *models.GenderEnum {
|
||||
return &g
|
||||
}
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
performer *models.ScrapedPerformer
|
||||
@@ -259,7 +263,7 @@ func Test_scrapedToPerformerInput(t *testing.T) {
|
||||
Name: name,
|
||||
Birthdate: dateToDatePtr(models.NewDate(*nextVal())),
|
||||
DeathDate: dateToDatePtr(models.NewDate(*nextVal())),
|
||||
Gender: models.GenderEnum(*nextVal()),
|
||||
Gender: genderPtr(models.GenderEnum(*nextVal())),
|
||||
Ethnicity: *nextVal(),
|
||||
Country: *nextVal(),
|
||||
EyeColor: *nextVal(),
|
||||
|
||||
Reference in New Issue
Block a user