From d8715c5a2bb776e3896300998c61c93f4a1da946 Mon Sep 17 00:00:00 2001 From: johnyu95 Date: Mon, 1 Aug 2022 12:21:20 -0400 Subject: [PATCH] Fixed link data sets query --- app/report/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/report/utils.py b/app/report/utils.py index e6d09c81e..eee24911b 100644 --- a/app/report/utils.py +++ b/app/report/utils.py @@ -540,7 +540,7 @@ def generate_open_data_report(agency_ein: str, date_from: datetime, date_to: dat link_data_sets = db.session.query(Requests, Responses, - Files).join(Responses, + Links).join(Responses, Requests.id == Responses.request_id).join(Links, Responses.id == Links.id).with_entities( Requests.id, @@ -756,4 +756,5 @@ def generate_open_data_report(agency_ein: str, date_from: datetime, date_to: dat all_requests_sheet, )) + # TODO: Update Excel spreadsheet format to xlsx return excel_spreadsheet.export('xls')