MCPcopy Create free account
hub / github.com/cppla/ServerStatus / find_server

Function find_server

server/manage_api.py:241–246  ·  view source on GitHub ↗
(config, username)

Source from the content-addressed store, hash-verified

239
240
241def find_server(config, username):
242 servers = config.get("servers", [])
243 for index, server in enumerate(servers):
244 if server.get("username") == username:
245 return index, server
246 return -1, None
247
248
249def find_collection_item(config, key, item_id):

Callers 1

routeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected