Auto commit: 2025-12-21 22:45:00 - Hourly auto save

This commit is contained in:
Your Name committed 2025-12-21 22:45:01 +08:00
1 parent 1a63852bde
commit 5b8dd6e5d4
17 files changed
+1921 -88

No files matched your search

+5 -2
View File
@@ -8,6 +8,7 @@ import threading
import time
from http import HTTPStatus
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
from typing import Optional
from urllib.parse import parse_qs, urlparse
BASE_DIR = os.path.dirname(__file__)
@@ -163,7 +164,7 @@ class ProcRunner:
def _inc(self, key: str, n: int = 1) -> None:
self._counters[key] = int(self._counters.get(key, 0)) + int(n)
def _record_event(self, typ: str, meta: dict | None = None) -> None:
def _record_event(self, typ: str, meta: Optional[dict] = None) -> None:
ev = {
"ts": time.time(),
"type": str(typ),
@@ -1320,7 +1321,9 @@ class Handler(BaseHTTPRequestHandler):
self.send_error(HTTPStatus.NOT_FOUND)
def log_message(self, fmt, *args):
def log_message(self, format, *args): # type: ignore[override]
# 覆盖基类方法以抑制日志输出
# 参数名从 fmt 改为 format 以匹配基类签名
return