Handle exclusions as a distinct status (#248)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2020-12-28 22:32:56 +01:00
committed by GitHub
parent 892fad6be1
commit 9819a73582
5 changed files with 11 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ const (
ImageStatusNew = ImageStatus("new")
ImageStatusUpdate = ImageStatus("update")
ImageStatusUnchange = ImageStatus("unchange")
ImageStatusSkip = ImageStatus("skip")
ImageStatusError = ImageStatus("error")
)

View File

@@ -10,6 +10,7 @@ type NotifEntries struct {
CountNew int
CountUpdate int
CountUnchange int
CountSkip int
CountError int
CountTotal int
}
@@ -61,6 +62,9 @@ func (s *NotifEntries) Add(entry NotifEntry) {
case ImageStatusUnchange:
s.CountUnchange++
s.CountTotal++
case ImageStatusSkip:
s.CountSkip++
s.CountTotal++
case ImageStatusError:
s.CountError++
s.CountTotal++