From 2868843028b8775a645c89f9c944d9855439c974 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 24 Aug 2026 19:40:12 +0000 Subject: [PATCH] Fix inverted client filter in admin hide ping The hide=1 branch kept the admin's own pending crawler hits (==) instead of discarding them (!=), so an admin's document GETs flushed to the crawler list 10s later while every other client's pending hits were wrongly dropped. This is why ordinary admin browsers showed up as crawlers. --- pagerite/analytics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagerite/analytics.py b/pagerite/analytics.py index 7dad3a9..fac9c5c 100644 --- a/pagerite/analytics.py +++ b/pagerite/analytics.py @@ -697,7 +697,7 @@ class Store: if hide: # Admin ping: cancel pending crawler hits and scrub the session. self.pending_crawlers = [ - hit for hit in self.pending_crawlers if hit.client == client_hash + hit for hit in self.pending_crawlers if hit.client != client_hash ] index = self.sessions.pop(client_hash, None) if index is not None and index < len(self.data.visits):