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:
parent
4beeebe5cc
commit
406737e180
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue