From cfcdcf247ba2f96ab57d229c723b59aaca8c37be Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 25 Apr 2022 08:19:43 +0900 Subject: [PATCH] Rename parameter name --- backend/data_export/celery_tasks.py | 6 +++--- backend/data_export/views.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/data_export/celery_tasks.py b/backend/data_export/celery_tasks.py index 44117379..3c29f478 100644 --- a/backend/data_export/celery_tasks.py +++ b/backend/data_export/celery_tasks.py @@ -56,9 +56,9 @@ def create_individual_dataset(project: Project, file_format: str, confirmed_only @shared_task -def export_dataset(project_id, file_format: str, export_approved=False): +def export_dataset(project_id, file_format: str, confirmed_only=False): project = get_object_or_404(Project, pk=project_id) if project.collaborative_annotation: - return create_collaborative_dataset(project, file_format, export_approved) + return create_collaborative_dataset(project, file_format, confirmed_only) else: - return create_individual_dataset(project, file_format, export_approved) + return create_individual_dataset(project, file_format, confirmed_only) diff --git a/backend/data_export/views.py b/backend/data_export/views.py index f19e0c07..656251f2 100644 --- a/backend/data_export/views.py +++ b/backend/data_export/views.py @@ -39,6 +39,6 @@ class DatasetExportAPI(APIView): file_format = request.data.pop("format") export_approved = request.data.pop("exportApproved", False) task = export_dataset.delay( - project_id=project_id, file_format=file_format, export_approved=export_approved, **request.data + project_id=project_id, file_format=file_format, confirmed_only=export_approved, **request.data ) return Response({"task_id": task.task_id})