From 50f5ce81bf2540c796c7595f311e5f64e89775f4 Mon Sep 17 00:00:00 2001 From: adriano Date: Fri, 5 Sep 2025 15:42:20 -0300 Subject: [PATCH] fix: solved report export xlsx 400 error --- backend/app/routes/usage_routes.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/app/routes/usage_routes.py b/backend/app/routes/usage_routes.py index 3604661..533fdec 100644 --- a/backend/app/routes/usage_routes.py +++ b/backend/app/routes/usage_routes.py @@ -37,7 +37,8 @@ class TranscriptionExport(Resource): "company_id": request.args.get("companyId", type=str), "start_date": request.args.get("startDate"), "end_date": request.args.get("endDate"), - "who": request.args.get("who", type=str) + "who": request.args.get("who", type=str), + "totalCost": request.args.get("totalCost", type=str, default="true") } validated = TranscriptionRequest(**data) @@ -93,9 +94,7 @@ class TranscriptionUsageData(Resource): """ Get transcription report data. """ - - print('request.args.get("totalCost"): ', request.args.get("totalCost")) - + data = { "company_id": request.args.get("companyId", type=str), "start_date": request.args.get("startDate"),