Fix places counter #292

See https://github.com/photoprism/photoprism/issues/292#issuecomment-626203720

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-05-10 16:12:15 +02:00
parent 4beeebe5cc
commit 406737e180

View file

@ -162,7 +162,8 @@ func (c *Config) ClientConfig() ClientConfig {
Take(&count)
db.Table("places").
Select("(SUM(photo_count > 0) - 1) AS places").
Select("SUM(photo_count > 0) AS places").
Where("id != 'zz'").
Take(&count)
type country struct {