From d20274682969cfefc35c18dee48b7019063564da Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 21 Aug 2025 14:53:18 +0800 Subject: [PATCH] Update index.py --- plugins/webstats/index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/webstats/index.py b/plugins/webstats/index.py index 26e164152..74e02878d 100755 --- a/plugins/webstats/index.py +++ b/plugins/webstats/index.py @@ -748,9 +748,6 @@ def getLogsList(): if method != "all": conn = conn.andWhere("method=?", (method,)) - if status_code != "all": - conn = conn.andWhere("status_code=?", (status_code,)) - if request_time != "all": request_time_s = request_time.strip().split('-') # print(request_time_s) @@ -793,6 +790,9 @@ def getLogsList(): if search_uri != "": conn = conn.andWhere("uri like '%" + search_uri + "%'", ()) + if status_code != "all": + conn = conn.andWhere("status_code=?", (status_code,)) + attacHistoryLogHack(conn, domain, query_date) conn.changeTextFactoryToBytes()