From 0916f0e42df76071e28a1e7591d560a1ccb97c67 Mon Sep 17 00:00:00 2001 From: Paul Herron Date: Thu, 2 Jul 2026 14:22:45 +0100 Subject: [PATCH] Improved matching for council names The build was failing due to the local land charges website being updated today. One of the reasons for failure was a non breaking space entered into a council name instead of a natural space. This change updates our find_organisation function to accommodate for all types of space (including  ). There's also an update to a council name. --- bin/llc-parse.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/llc-parse.py b/bin/llc-parse.py index 4013581a3..272447aac 100755 --- a/bin/llc-parse.py +++ b/bin/llc-parse.py @@ -38,12 +38,13 @@ ("St Helens Borough Council", "St Helens Council"), ("Wyre Council", "Wyre Borough Council"), ("Camden Council", "London Borough of Camden"), + ("East Suffolk District Council", "East Suffolk Council"), ]: organisations[o] = organisations[n] def find_organisation(name): - name = name.strip() + name = " ".join(name.split()) if name in organisations: return organisations[name]["organisation"] raise NameError(name)