mirror of https://github.com/stashapp/stash.git
Fix sort by movies_scene_number (#1448)
This commit is contained in:
parent
47ecb9f9b1
commit
c5fed1bbdc
|
@ -673,7 +673,7 @@ func (qb *sceneQueryBuilder) setSceneSort(query *queryBuilder, findFilter *model
|
|||
direction := findFilter.GetDirection()
|
||||
switch sort {
|
||||
case "movie_scene_number":
|
||||
query.join(moviesScenesTable, "movies_join", "scenes.id")
|
||||
query.join(moviesScenesTable, "movies_join", "scenes.id = movies_join.scene_id")
|
||||
query.sortAndPagination += fmt.Sprintf(" ORDER BY movies_join.scene_index %s", getSortDirection(direction))
|
||||
case "tag_count":
|
||||
query.sortAndPagination += getCountSort(sceneTable, scenesTagsTable, sceneIDColumn, direction)
|
||||
|
|
Loading…
Reference in New Issue