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

Method find_node

mod/project/node/dbutil/node_db.py:285–290  ·  view source on GitHub ↗
(self, api_key:str = "", app_key: str = "")

Source from the content-addressed store, hash-verified

283 return ""
284
285 def find_node(self, api_key:str = "", app_key: str = "") -> Optional[dict]:
286 res = self.db.table('node').where('api_key=?', (api_key, app_key)).find()
287 if isinstance(res, dict):
288 return res
289 else:
290 return None
291
292 def get_node_list(self,
293 search: str = "",

Callers 2

wait_for_rebootMethod · 0.80
wait_for_rebootMethod · 0.80

Calls 3

findMethod · 0.45
whereMethod · 0.45
tableMethod · 0.45

Tested by

no test coverage detected