mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34: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:
@@ -24,6 +24,15 @@ func nullIntPtr(i null.Int) *int {
|
||||
return &v
|
||||
}
|
||||
|
||||
func nullFloatPtr(i null.Float) *float64 {
|
||||
if !i.Valid {
|
||||
return nil
|
||||
}
|
||||
|
||||
v := float64(i.Float64)
|
||||
return &v
|
||||
}
|
||||
|
||||
func nullIntFolderIDPtr(i null.Int) *file.FolderID {
|
||||
if !i.Valid {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user