mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Fixed 0 for weight when a new performer is created and fixed the search is null (#1336)
This commit is contained in:
parent
7836a37d6e
commit
f66010a367
4 changed files with 5 additions and 5 deletions
|
|
@ -76,7 +76,7 @@ input PerformerFilterType {
|
|||
"""Filter by hair color"""
|
||||
hair_color: StringCriterionInput
|
||||
"""Filter by weight"""
|
||||
weight: StringCriterionInput
|
||||
weight: IntCriterionInput
|
||||
"""Filter by death year"""
|
||||
death_year: IntCriterionInput
|
||||
}
|
||||
|
|
|
|||
|
|
@ -260,8 +260,8 @@ func (qb *performerQueryBuilder) Query(performerFilter *models.PerformerFilterTy
|
|||
query.handleStringCriterionInput(performerFilter.Tattoos, tableName+".tattoos")
|
||||
query.handleStringCriterionInput(performerFilter.Piercings, tableName+".piercings")
|
||||
query.handleStringCriterionInput(performerFilter.HairColor, tableName+".hair_color")
|
||||
query.handleStringCriterionInput(performerFilter.Weight, tableName+".weight")
|
||||
query.handleStringCriterionInput(performerFilter.URL, tableName+".url")
|
||||
query.handleIntCriterionInput(performerFilter.Weight, tableName+".weight")
|
||||
|
||||
// TODO - need better handling of aliases
|
||||
query.handleStringCriterionInput(performerFilter.Aliases, tableName+".aliases")
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ export const PerformerEditPanel: React.FC<IPerformerDetails> = ({
|
|||
details: performer.details ?? "",
|
||||
death_date: performer.death_date ?? "",
|
||||
hair_color: performer.hair_color ?? "",
|
||||
weight: performer.weight ?? "",
|
||||
weight: performer.weight ?? undefined,
|
||||
};
|
||||
|
||||
type InputValues = typeof initialValues;
|
||||
|
|
|
|||
|
|
@ -209,6 +209,7 @@ export class ListFilterModel {
|
|||
"birth_year",
|
||||
"death_year",
|
||||
"age",
|
||||
"weight",
|
||||
];
|
||||
const stringCriteria: CriterionType[] = [
|
||||
"ethnicity",
|
||||
|
|
@ -216,7 +217,6 @@ export class ListFilterModel {
|
|||
"hair_color",
|
||||
"eye_color",
|
||||
"height",
|
||||
"weight",
|
||||
"measurements",
|
||||
"fake_tits",
|
||||
"career_length",
|
||||
|
|
@ -718,7 +718,7 @@ export class ListFilterModel {
|
|||
break;
|
||||
}
|
||||
case "weight": {
|
||||
const wCrit = criterion as StringCriterion;
|
||||
const wCrit = criterion as NumberCriterion;
|
||||
result.weight = { value: wCrit.value, modifier: wCrit.modifier };
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue