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)