Skip to content

Commit

Permalink
Fix performer tag sort (#4018)
Browse files Browse the repository at this point in the history
* Fix performer tag sort
* Fix entirely unrelated test
  • Loading branch information
DingDongSoLong4 authored Aug 11, 2023
1 parent 38a06be commit 8be2c4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions internal/identify/scene_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package identify

import (
"context"
"errors"
"reflect"
"strconv"
Expand Down Expand Up @@ -770,7 +769,7 @@ func Test_sceneRelationships_cover(t *testing.T) {
},
}

got, err := tr.cover(context.TODO())
got, err := tr.cover(testCtx)
if (err != nil) != tt.wantErr {
t.Errorf("sceneRelationships.cover() error = %v, wantErr %v", err, tt.wantErr)
return
Expand Down
4 changes: 3 additions & 1 deletion pkg/sqlite/performer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,9 @@ func (qb *PerformerStore) tagsRepository() *joinRepository {
tableName: performersTagsTable,
idColumn: performerIDColumn,
},
fkColumn: tagIDColumn,
fkColumn: tagIDColumn,
foreignTable: tagTable,
orderBy: "tags.name ASC",
}
}

Expand Down

0 comments on commit 8be2c4b

Please sign in to comment.