Skip to content

Commit

Permalink
Correcting code indents and removing eng
Browse files Browse the repository at this point in the history
  • Loading branch information
ssadhu-sl committed Apr 29, 2024
1 parent 8fe6e99 commit f0ab770
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
5 changes: 3 additions & 2 deletions application/routers/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def get_entity(
if old_entity_status == 410:
if extension:
raise HTTPException(
detail=f"Entity {entity} has been removed", status_code=410
detail=f"Entity {entity} has been removed",
status_code=410,
)
else:
return templates.TemplateResponse(
Expand Down Expand Up @@ -284,7 +285,7 @@ def search_entities(
columns = ["dataset", "name", "plural", "typology", "themes", "paint_options"]
datasets = [dataset.dict(include=set(columns)) for dataset in response]

local_authorities = get_local_authorities(session, "local-authority-eng")
local_authorities = get_local_authorities(session, "local-authority")
local_authorities = [la.dict() for la in local_authorities]

if links.get("prev") is not None:
Expand Down
18 changes: 9 additions & 9 deletions application/templates/entity-gone.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">Entity Removed</h1>

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

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

0 comments on commit f0ab770

Please sign in to comment.