Skip to content

Commit

Permalink
Fixed link data sets query
Browse files Browse the repository at this point in the history
  • Loading branch information
johnyu95 committed Aug 1, 2022
1 parent 4cad0a8 commit d8715c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/report/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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')

0 comments on commit d8715c5

Please sign in to comment.