diff --git a/pkg/models/demographic/queries.go b/pkg/models/demographic/queries.go index f2d85ef..bd1e470 100644 --- a/pkg/models/demographic/queries.go +++ b/pkg/models/demographic/queries.go @@ -278,6 +278,7 @@ func PhotoStatistics() Photo { photos JOIN users ON (photos.user_id = users.id) WHERE photos.visibility = 'public' + AND photos.gallery IS TRUE AND users.certified IS TRUE AND users.status = 'active' GROUP BY photos.explicit diff --git a/web/templates/demographics.html b/web/templates/demographics.html index be51138..e1a8097 100644 --- a/web/templates/demographics.html +++ b/web/templates/demographics.html @@ -210,7 +210,7 @@ {{range .Demographic.People.IterOrientations}}
- {{or .Label "(No answer)"}} + {{or .Label "No answer"}} ({{FormatNumberCommas .Count}})