mirror of https://github.com/stashapp/stash.git
fix bug:Studios sort by scene_count reported by malcuk on discord
This commit is contained in:
parent
034e5d60ac
commit
92d90863a8
|
@ -85,6 +85,9 @@ func (qb *StudioQueryBuilder) Query(findFilter *FindFilterType) ([]*Studio, int)
|
|||
var havingClauses []string
|
||||
var args []interface{}
|
||||
body := selectDistinctIDs("studios")
|
||||
body += `
|
||||
join scenes on studios.id = scenes.studio_id
|
||||
`
|
||||
|
||||
if q := findFilter.Q; q != nil && *q != "" {
|
||||
searchColumns := []string{"studios.name"}
|
||||
|
|
Loading…
Reference in New Issue