From 2bc5fba8d2deba64c91206fd348c0ba918496728 Mon Sep 17 00:00:00 2001 From: Eric Wagoner Date: Sun, 6 Sep 2026 09:24:55 -0400 Subject: [PATCH] The rollup's path mix counts people only Crawlers and the uptime monitor hit the front page hundreds of times a day and were tallied beside the visitors who read it. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01Jm2auWk6RP71CjaAb4FMoG --- deploy/wizwar-rollup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/wizwar-rollup.sh b/deploy/wizwar-rollup.sh index 16e8226..84d43c9 100755 --- a/deploy/wizwar-rollup.sh +++ b/deploy/wizwar-rollup.sh @@ -56,7 +56,7 @@ for f in sorted(glob.glob("/var/lib/caddy/access*.log*")): key = ("/clips" if uri.startswith("/clips") else "/watch" if uri.startswith("/watch") else "(assets)" if uri.startswith("/assets") or re.search(r"\.(png|jpg|svg|ico|css|js|webmanifest|mp4)$", uri) else uri if uri in ("/", "/ws", "/robots.txt") else "(other)") - paths[key] += 1 + if not isbot: paths[key] += 1 # the path mix is what people looked at status[str(r.get("status", 0))[0] + "xx"] += 1 ref = " ".join(h.get("Referer", [""])) m = re.match(r"https?://([^/]+)", ref)