From f0ab7704a797c72e6a7b186e96d79de27acb9205 Mon Sep 17 00:00:00 2001 From: Samriti Sadhu Date: Mon, 29 Apr 2024 09:54:43 +0100 Subject: [PATCH] Correcting code indents and removing eng --- application/routers/entity.py | 5 +++-- application/templates/entity-gone.html | 18 +++++++++--------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/application/routers/entity.py b/application/routers/entity.py index 29d0aad5..7c7b0388 100644 --- a/application/routers/entity.py +++ b/application/routers/entity.py @@ -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( @@ -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: diff --git a/application/templates/entity-gone.html b/application/templates/entity-gone.html index b348452c..7d5161c7 100644 --- a/application/templates/entity-gone.html +++ b/application/templates/entity-gone.html @@ -8,16 +8,16 @@

Entity Removed

-

- This entity (#{{entity}}) has been removed. -

+

+ This entity (#{{ entity }}) has been removed. +

- {% set subject = "Feedback on removed entity with number " + entity %} -
- Spotted an issue? You can - contact the Planning Data team - if you need to speak to someone about this page. + {% set subject = "Feedback on removed entity with number " + entity %} +
+ Spotted an issue? You can + contact the Planning Data team + if you need to speak to someone about this page. +
- {%- endblock %}