This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 6cfb33d4 Don't report duplicates
6cfb33d4 is described below
commit 6cfb33d47947cb77f5b24f34a8958bd3dde74fe1
Author: Sebb <[email protected]>
AuthorDate: Sat Aug 19 21:48:52 2023 +0100
Don't report duplicates
---
tools/site-scan.rb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 3e1145a3..7210af07 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -44,8 +44,9 @@ end
# helper for multiple events
# TODO should we show them all?
def save_events(data, value)
- if data[:events]
- puts "Events: already have #{data[:events]}, not storing #{value}"
+ prev = data[:events]
+ if prev and prev != value
+ puts "Events: already have #{prev}, not storing #{value}"
else
data[:events] = value
end