MCPcopy Index your code
hub / github.com/WebODM/WebODM / get_processing_nodes

Method get_processing_nodes

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

Source from the content-addressed store, hash-verified

108
109 @login_required
110 def get_processing_nodes(request):
111 nodes = get_objects_for_user(request.user, 'view_processingnode', ProcessingNode,
112 accept_global_perms=False)
113 lightning_node_ids = ds.get_json("nodes", [])
114
115 nodes = [n for n in nodes if n.id in lightning_node_ids]
116 serializer = ProcessingNodeSerializer(nodes, many=True)
117
118 return JsonResponse(serializer.data)
119
120 @login_required
121 def is_lightning_node(request):

Callers

nothing calls this directly

Calls 3

get_jsonMethod · 0.80
JsonResponseFunction · 0.70

Tested by

no test coverage detected