fa45d8aa5f
- health_checklist.json: 192.168.1.122→node122
- ocr_client.py: docstring IP→node122
- docs/market-data-requirements.md: IP→node122
- 所有API调用通过ProxyHandler({})绕过系统代理
Privoxy对node122:18003返回500,直连正常
17 lines
525 B
Python
17 lines
525 B
Python
"""Shared helpers for the integration presets."""
|
|
|
|
from typing import Iterable
|
|
|
|
|
|
def ensure_mappers(mapper_names: Iterable[str], *names: str) -> list[str]:
|
|
"""Return ``mapper_names`` with each of ``names`` appended if not already present.
|
|
|
|
Order is preserved and duplicates are skipped, so composing several presets
|
|
(or re-applying one) never double-adds a vocabulary.
|
|
"""
|
|
result = list(mapper_names)
|
|
for name in names:
|
|
if name not in result:
|
|
result.append(name)
|
|
return result
|