Fix labels count for SQLite
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
a6e06844f3
commit
186b2da58a
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ func (c *Config) ClientConfig() ClientConfig {
|
||||||
Select("MAX(photo_count) as label_max_photos, COUNT(*) AS labels").
|
Select("MAX(photo_count) as label_max_photos, COUNT(*) AS labels").
|
||||||
Where("photo_count > 0").
|
Where("photo_count > 0").
|
||||||
Where("deleted_at IS NULL").
|
Where("deleted_at IS NULL").
|
||||||
Where("(label_priority >= 0 || label_favorite = 1)").
|
Where("(label_priority >= 0 OR label_favorite = 1)").
|
||||||
Take(&result.Count)
|
Take(&result.Count)
|
||||||
|
|
||||||
c.Db().Table("albums").
|
c.Db().Table("albums").
|
||||||
|
|
Loading…
Reference in a new issue