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.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user