(self, request, pk)
| 294 | |
| 295 | class 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 | |
| 317 | DRONEDB_ASSETS = [ |
| 318 | 'orthophoto.tif', |
nothing calls this directly
no test coverage detected