MCPcopy
hub / github.com/WebODM/WebODM / is_lightning_node

Method is_lightning_node

coreplugins/lightning/plugin.py:121–123  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

119
120 @login_required
121 def is_lightning_node(request):
122 lightning_node_ids = ds.get_json("nodes", [])
123 return JsonResponse({'result': int(request.GET.get('id')) in lightning_node_ids})
124
125 @login_required
126 @require_POST

Callers

nothing calls this directly

Calls 3

get_jsonMethod · 0.80
JsonResponseFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected