mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
handing a case of missing region
This commit is contained in:
parent
905a7295b8
commit
f414fbf01d
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