MCPcopy
hub / github.com/WebODM/WebODM / get

Method get

coreplugins/dronedb/api_views.py:296–315  ·  view source on GitHub ↗
(self, request, pk)

Source from the content-addressed store, hash-verified

294
295class StatusTaskView(TaskView):
296 def get(self, request, pk):
297
298 task = self.get_and_check_task(request, pk)
299
300 # Associate the folder url with the project and task
301 status_key = get_status_key(pk)
302
303 datastore = get_current_plugin().get_global_data_store()
304
305 task_info = datastore.get_json(status_key, {
306 'status': 0, # Idle
307 'shareUrl': None,
308 'uploadedFiles': 0,
309 'totalFiles': 0,
310 'uploadedSize': 0,
311 'totalSize': 0,
312 'error': None
313 })
314
315 return Response(task_info, status=status.HTTP_200_OK)
316
317DRONEDB_ASSETS = [
318 'orthophoto.tif',

Callers

nothing calls this directly

Calls 5

get_current_pluginFunction · 0.90
get_status_keyFunction · 0.85
get_and_check_taskMethod · 0.80
get_global_data_storeMethod · 0.80
get_jsonMethod · 0.80

Tested by

no test coverage detected