mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
Correct KeywordID's with extra Zero
This commit is contained in:
parent
833685251c
commit
3d10d14963
2 changed files with 6 additions and 6 deletions
|
|
@ -37,19 +37,19 @@ var PhotoKeywordFixtures = PhotoKeywordMap{
|
|||
},
|
||||
"9": {
|
||||
PhotoID: 10000029,
|
||||
KeywordID: 10000005,
|
||||
KeywordID: 1000005,
|
||||
},
|
||||
"10": {
|
||||
PhotoID: 1000031,
|
||||
KeywordID: 10000006,
|
||||
KeywordID: 1000006,
|
||||
},
|
||||
"11": {
|
||||
PhotoID: 1000032,
|
||||
KeywordID: 10000008,
|
||||
KeywordID: 1000008,
|
||||
},
|
||||
"12": {
|
||||
PhotoID: 1000033,
|
||||
KeywordID: 10000009,
|
||||
KeywordID: 1000009,
|
||||
},
|
||||
"13": {
|
||||
PhotoID: 1000034,
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ func TestPhotosFilterFilter(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
assert.Equal(t, len(photos), 0)
|
||||
assert.Equal(t, 1, len(photos))
|
||||
})
|
||||
t.Run("EndsWithPercent", func(t *testing.T) {
|
||||
var f form.SearchPhotos
|
||||
|
|
@ -286,7 +286,7 @@ func TestPhotosQueryFilter(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
assert.Equal(t, len(photos), 0)
|
||||
assert.Equal(t, 1, len(photos))
|
||||
})
|
||||
t.Run("EndsWithPercent", func(t *testing.T) {
|
||||
var f form.SearchPhotos
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue