mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Correct KeywordID's with extra Zero
This commit is contained in:
committed by
Michael Mayer
parent
833685251c
commit
3d10d14963
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user