Skip to content

Commit

Permalink
Merge pull request #250 from UKGovernmentBEIS/develop
Browse files Browse the repository at this point in the history
Merge develop into staging
  • Loading branch information
chidin194 authored Dec 4, 2023
2 parents b7c1619 + d39b6ef commit b1799ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions help_to_heat/portal/download_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
referral_column_headings = (
"ECO4",
"GBIS",
"country",
"first_name",
"last_name",
"contact_number",
Expand Down Expand Up @@ -53,6 +54,8 @@
referral_column_headings_no_pii = (
"ECO4",
"GBIS",
"country",
"postcode",
"own_property",
"benefits",
"household_income",
Expand Down Expand Up @@ -236,7 +239,6 @@ def add_extra_row_data(referral, exclude_pii=False):
"last_name",
"email",
"address",
"postcode",
"contact_number",
]

Expand Down Expand Up @@ -264,7 +266,7 @@ def add_extra_row_data(referral, exclude_pii=False):
**row,
"ECO4": "ECO4" in eligibility and "Yes" or "No",
"GBIS": "GBIS" in eligibility and "Yes" or "No",
"epc_rating": epc_rating and epc_rating != "Not found" or "",
"epc_rating": epc_rating and epc_rating or "",
"epc_date": epc_date and epc_date or "",
"submission_date": created_at.date(),
"submission_time": created_at.time().strftime("%H:%M:%S"),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_csv():
text = csv_page.content.decode("utf-8")
lines = text.splitlines()
assert len(lines) == 2
assert len(lines[0].split(",")) == 30, len(lines[0].split(","))
assert len(lines[0].split(",")) == 31, len(lines[0].split(","))

rows = list(csv.DictReader(lines))
data = rows[0]
Expand Down

0 comments on commit b1799ff

Please sign in to comment.