mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Merge pull request #447 from Hestia-Homes/main
handing a case of missing region
This commit is contained in:
commit
c3b5e74480
2 changed files with 2 additions and 0 deletions
|
|
@ -720,6 +720,7 @@ class RetrieveFindMyEpc:
|
||||||
# We attempt with the backup add
|
# We attempt with the backup add
|
||||||
searcher = cls(address=address1, postcode=epc["postcode"])
|
searcher = cls(address=address1, postcode=epc["postcode"])
|
||||||
find_epc_data = searcher.retrieve_newest_find_my_epc_data()
|
find_epc_data = searcher.retrieve_newest_find_my_epc_data()
|
||||||
|
logger.info("Successfully retrieved find my epc data using backup address")
|
||||||
|
|
||||||
non_invasive_recommendations = {
|
non_invasive_recommendations = {
|
||||||
"uprn": epc["uprn"],
|
"uprn": epc["uprn"],
|
||||||
|
|
|
||||||
|
|
@ -186,4 +186,5 @@ county_to_region_map = {
|
||||||
'Southwark': 'Inner London', 'Sutton': 'Inner London', 'Tower Hamlets': 'Inner London',
|
'Southwark': 'Inner London', 'Sutton': 'Inner London', 'Tower Hamlets': 'Inner London',
|
||||||
'Waltham Forest': 'Inner London',
|
'Waltham Forest': 'Inner London',
|
||||||
'Wandsworth': 'Inner London', 'Westminster': 'Inner London',
|
'Wandsworth': 'Inner London', 'Westminster': 'Inner London',
|
||||||
|
'Richmond upon Thames': 'Outer London',
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue