MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / has_domain

Method has_domain

mod/project/node/nodeutil/base.py:418–431  ·  view source on GitHub ↗
(self, site_id: int, domain: str)

Source from the content-addressed store, hash-verified

416 data.get("msg", str(data)) if isinstance(data, dict) else str(data))
417
418 def has_domain(self, site_id: int, domain: str) -> bool:
419 data, err = self._request("/data", "getData", pdata={
420 "table": "domain",
421 "list": "True",
422 "search": str(site_id)
423 })
424 if err:
425 return False
426 if not isinstance(data, list):
427 return False
428 for d in data:
429 if d["name"] == domain:
430 return True
431 return False
432
433 # mode -> cover: 覆盖,ignore: 跳过,rename:重命名
434 def upload_file(self, filename: str, target_path: str, mode: str = "cover",

Callers

nothing calls this directly

Calls 1

_requestMethod · 0.95

Tested by

no test coverage detected