From 709c59d7d9b2c23b8c7709e56ee909ccf2df0441 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Tue, 5 Oct 2021 18:59:35 +0200 Subject: [PATCH] People: Improve faces audit report #22 --- internal/photoprism/faces_audit.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/photoprism/faces_audit.go b/internal/photoprism/faces_audit.go index cde063989..0263e677c 100644 --- a/internal/photoprism/faces_audit.go +++ b/internal/photoprism/faces_audit.go @@ -25,14 +25,14 @@ func (w *Faces) Audit(fix bool) (err error) { if n := len(subj); n == 0 { log.Infof("found no subjects") } else { - log.Infof("%d known subjects", n) + log.Infof("found %s", english.Plural(n, "subject", "subjects")) } // Fix non-existent marker subjects references? if n := len(invalidSubj); n == 0 { log.Infof("found no invalid marker subjects") } else if !fix { - log.Infof("%d markers with non-existent subjects", n) + log.Infof("%s with non-existent subjects", english.Plural(n, "marker", "markers")) } else if removed, err := query.RemoveNonExistentMarkerSubjects(); err != nil { log.Infof("removed %d / %d markers with non-existent subjects", removed, n) } else { @@ -43,7 +43,7 @@ func (w *Faces) Audit(fix bool) (err error) { if n := len(invalidFaces); n == 0 { log.Infof("found no invalid marker faces") } else if !fix { - log.Infof("%d markers with non-existent faces", n) + log.Infof("%s with non-existent faces", english.Plural(n, "marker", "markers")) } else if removed, err := query.RemoveNonExistentMarkerFaces(); err != nil { log.Infof("removed %d / %d markers with non-existent faces", removed, n) } else {