From 34882e61659b595c3c506cd15f7cab24e85d9411 Mon Sep 17 00:00:00 2001 From: dx-tan Date: Wed, 7 Feb 2024 13:17:31 +0700 Subject: [PATCH] Fix: empty report detail --- cope2n-api/fwd_api/celery_worker/process_report_tasks.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cope2n-api/fwd_api/celery_worker/process_report_tasks.py b/cope2n-api/fwd_api/celery_worker/process_report_tasks.py index 28a1e06..2436eb5 100644 --- a/cope2n-api/fwd_api/celery_worker/process_report_tasks.py +++ b/cope2n-api/fwd_api/celery_worker/process_report_tasks.py @@ -275,7 +275,6 @@ def make_a_report_2(report_id, query_set): report.status = "Ready" report.save() # Saving a xlsx file - report_files = ReportFile.objects.filter(report=report) data = extract_report_detail_list(report_files, lower=True) data_workbook = dict2xlsx(data, _type='report_detail') local_workbook = save_workbook_file(report.report_id + ".xlsx", report, data_workbook)