MCPcopy
hub / github.com/WebODM/WebODM / post

Method post

coreplugins/lightning/api.py:85–91  ·  view source on GitHub ↗
(self, request, pk)

Source from the content-addressed store, hash-verified

83
84class GetTaskSize(TaskView):
85 def post(self, request, pk):
86 task = self.get_and_check_task(request, pk)
87 serializer = TaskSizeSerializer(data=request.data)
88 serializer.is_valid(raise_exception=True)
89 resources, _ = get_resources(task, serializer['assets'].value, serializer['customAssets'].value)
90
91 return Response({'size': get_size_bytes(resources)})
92
93def share_task(task_name, project_name, project, cloud_token, cloud_url, resources, resources_base_path, progress_callback, should_cancel):
94 import uuid

Callers

nothing calls this directly

Calls 4

TaskSizeSerializerClass · 0.85
get_resourcesFunction · 0.85
get_size_bytesFunction · 0.85
get_and_check_taskMethod · 0.80

Tested by

no test coverage detected