mirror of
https://github.com/stashapp/stash.git
synced 2026-02-08 00:12:55 +01:00
Restore old stash id filtering code (#3282)
This commit is contained in:
parent
8629a0713d
commit
05b0fb23f4
1 changed files with 6 additions and 0 deletions
|
|
@ -586,6 +586,12 @@ func (qb *PerformerStore) makeFilter(ctx context.Context, filter *models.Perform
|
|||
query.handleCriterion(ctx, stringCriterionHandler(filter.HairColor, tableName+".hair_color"))
|
||||
query.handleCriterion(ctx, stringCriterionHandler(filter.URL, tableName+".url"))
|
||||
query.handleCriterion(ctx, intCriterionHandler(filter.Weight, tableName+".weight", nil))
|
||||
query.handleCriterion(ctx, criterionHandlerFunc(func(ctx context.Context, f *filterBuilder) {
|
||||
if filter.StashID != nil {
|
||||
qb.stashIDRepository().join(f, "performer_stash_ids", "performers.id")
|
||||
stringCriterionHandler(filter.StashID, "performer_stash_ids.stash_id")(ctx, f)
|
||||
}
|
||||
}))
|
||||
query.handleCriterion(ctx, &stashIDCriterionHandler{
|
||||
c: filter.StashIDEndpoint,
|
||||
stashIDRepository: qb.stashIDRepository(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue