Forgot Firefox icon

This commit is contained in:
Gregory Soutade
2023-03-25 08:11:57 +01:00
parent 440f51ddd1
commit 71d8ee2113
3 changed files with 77 additions and 18 deletions

View File

@@ -125,6 +125,11 @@ class IWLAPreAnalysisRobots(IPlugin):
# 2) Less than 1 hit per page
if super_hit['viewed_pages'][0] and (super_hit['viewed_hits'][0] < super_hit['viewed_pages'][0]):
isRobot = True
for hit in super_hit['requests']:
if hit['server_name'] == 'indefero.soutade.fr':
if super_hit['viewed_hits'][0]*3 >= super_hit['viewed_pages'][0]:
isRobot = False
break
if isRobot:
self._setRobot(k, super_hit)