From 2107aae1b35a7475822ee487a7e81d704d956e29 Mon Sep 17 00:00:00 2001 From: star-nox Date: Wed, 13 Mar 2024 16:30:22 -0500 Subject: [PATCH] reverse response text for doc export --- ai_ta_backend/service/export_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai_ta_backend/service/export_service.py b/ai_ta_backend/service/export_service.py index 253ab1fa..1c300bc4 100644 --- a/ai_ta_backend/service/export_service.py +++ b/ai_ta_backend/service/export_service.py @@ -43,7 +43,7 @@ def export_documents_json(self, course_name: str, from_date='', to_date=''): # background task of downloading data - map it with above ID executor = ProcessPoolExecutor() executor.submit(self.export_data_in_bg, response, "documents", course_name, s3_filepath) - return {"response": 'There are 500+ documents in the export. You will receive an email with the download link shortly!', + return {"response": 'Download from S3', "s3_path": s3_filepath} else: