From 186b2da58ab6e95da2db47e0bf4b14e0bef12b50 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Mon, 1 Jun 2020 02:30:37 +0200 Subject: [PATCH] Fix labels count for SQLite Signed-off-by: Michael Mayer --- internal/config/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/client.go b/internal/config/client.go index 6947823c6..ec997345b 100644 --- a/internal/config/client.go +++ b/internal/config/client.go @@ -201,7 +201,7 @@ func (c *Config) ClientConfig() ClientConfig { Select("MAX(photo_count) as label_max_photos, COUNT(*) AS labels"). Where("photo_count > 0"). Where("deleted_at IS NULL"). - Where("(label_priority >= 0 || label_favorite = 1)"). + Where("(label_priority >= 0 OR label_favorite = 1)"). Take(&result.Count) c.Db().Table("albums").