Skip to content

Commit f0ab770

Browse files
committed
Correcting code indents and removing eng
1 parent 8fe6e99 commit f0ab770

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

application/routers/entity.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ def get_entity(
8181
if old_entity_status == 410:
8282
if extension:
8383
raise HTTPException(
84-
detail=f"Entity {entity} has been removed", status_code=410
84+
detail=f"Entity {entity} has been removed",
85+
status_code=410,
8586
)
8687
else:
8788
return templates.TemplateResponse(
@@ -284,7 +285,7 @@ def search_entities(
284285
columns = ["dataset", "name", "plural", "typology", "themes", "paint_options"]
285286
datasets = [dataset.dict(include=set(columns)) for dataset in response]
286287

287-
local_authorities = get_local_authorities(session, "local-authority-eng")
288+
local_authorities = get_local_authorities(session, "local-authority")
288289
local_authorities = [la.dict() for la in local_authorities]
289290

290291
if links.get("prev") is not None:

application/templates/entity-gone.html

+9-9
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
<div class="govuk-grid-column-two-thirds">
99
<h1 class="govuk-heading-l">Entity Removed</h1>
1010

11-
<p class="govuk-body">
12-
This entity (#{{entity}}) has been removed.
13-
</p>
11+
<p class="govuk-body">
12+
This entity (#{{ entity }}) has been removed.
13+
</p>
1414

15-
{% set subject = "Feedback on removed entity with number " + entity %}
16-
<div class="govuk-body">
17-
Spotted an issue? You can
18-
<a href="mailto:{{ templateVar.email }}?subject={{ subject }}" class="govuk-link"> contact the Planning Data team </a>
19-
if you need to speak to someone about this page.
15+
{% set subject = "Feedback on removed entity with number " + entity %}
16+
<div class="govuk-body">
17+
Spotted an issue? You can
18+
<a href="mailto:{{ templateVar.email }}?subject={{ subject }}" class="govuk-link"> contact the Planning Data team </a>
19+
if you need to speak to someone about this page.
20+
</div>
2021
</div>
2122
</div>
22-
</div>
2323
{%- endblock %}

0 commit comments

Comments
 (0)