mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Added uprns to non-invaive notes
This commit is contained in:
parent
a158f2353c
commit
485c01cbd6
1 changed files with 27 additions and 8 deletions
|
|
@ -51,18 +51,17 @@ def app():
|
|||
# "/Users/khalimconn-kowlessar/Downloads/IMMO - Dudley Pilot - non-invasive raw data/91 Osprey Drive DY1 "
|
||||
# "2JS/IMMO - 91 Osprey Drive Dudley DY1 2JS.msg"
|
||||
# )
|
||||
# filepath = (
|
||||
# "/Users/khalimconn-kowlessar/Downloads/IMMO - Dudley Pilot - non-invasive raw data/195 Ashenhurst Rd DY1 "
|
||||
# "2JB/IMMO - 195 Ashenhurst Road Dudley DY1 2JB.msg"
|
||||
# )
|
||||
filepath = (
|
||||
"/Users/khalimconn-kowlessar/Downloads/IMMO - Dudley Pilot - non-invasive raw data/195 Ashenhurst Rd DY1 "
|
||||
"2JB/IMMO - 195 Ashenhurst Road Dudley DY1 2JB.msg"
|
||||
"/Users/khalimconn-kowlessar/Downloads/IMMO - Dudley Pilot - non-invasive raw data/27 Milton Rd DY1 2JB/IMMO "
|
||||
"- 27 Milton Road Coseley Bilston WV14 8HZ.msg"
|
||||
)
|
||||
|
||||
with extract_msg.Message(filepath) as msg:
|
||||
sender = msg.sender
|
||||
recipients = msg.to
|
||||
subject = msg.subject
|
||||
body = msg.body
|
||||
# If the msg has attachments, they can be extracted as well
|
||||
attachments = msg.attachments
|
||||
|
||||
from pprint import pprint
|
||||
pprint(parse_msg_body(body))
|
||||
|
|
@ -70,6 +69,7 @@ def app():
|
|||
# We manually create the non-invasive notes for the pilot
|
||||
non_invasive_notes = [
|
||||
{
|
||||
'uprn': 90028499,
|
||||
'address': '5 Oaklands',
|
||||
'postcode': 'B62 0JA',
|
||||
'Surveyor': 'Carl Fitzgerald - The Warmfront Team',
|
||||
|
|
@ -82,6 +82,7 @@ def app():
|
|||
'Access to mains?': 'Property has access to the mains',
|
||||
},
|
||||
{
|
||||
'uprn': 90055152,
|
||||
'address': '6 Beech Road',
|
||||
'postcode': 'DY1 4BP',
|
||||
'Surveyor': 'Carl Fitzgerald - The Warmfront Team',
|
||||
|
|
@ -94,6 +95,7 @@ def app():
|
|||
'Access to mains?': 'Property has access to the mains',
|
||||
},
|
||||
{
|
||||
'uprn': 90070461,
|
||||
'address': '8 Corporation Road',
|
||||
'postcode': 'DY2 7PX',
|
||||
'Surveyor': 'Carl Fitzgerald - The Warmfront Team',
|
||||
|
|
@ -104,7 +106,7 @@ def app():
|
|||
'Access to mains?': None,
|
||||
},
|
||||
{
|
||||
|
||||
'uprn': 90022227,
|
||||
'address': '21 Wells Road',
|
||||
'postcode': 'DY5 3TB',
|
||||
'Surveyor': 'Carl Fitzgerald - The Warmfront Team',
|
||||
|
|
@ -116,6 +118,7 @@ def app():
|
|||
'Access to mains?': 'Property has access to the mains',
|
||||
},
|
||||
{
|
||||
'uprn': 90077535,
|
||||
'address': '47 Fairfield Road',
|
||||
'postcode': 'DY8 5UJ',
|
||||
'Surveyor': 'Carl Fitzgerald - The Warmfront Team',
|
||||
|
|
@ -127,6 +130,7 @@ def app():
|
|||
'Access to mains?': 'Property has access to the mains',
|
||||
},
|
||||
{
|
||||
'uprn': 90060989,
|
||||
'address': '53 Bromley',
|
||||
'postcode': 'DY5 4PJ',
|
||||
'Surveyor': 'Carl Fitzgerald - The Warmfront Team',
|
||||
|
|
@ -138,6 +142,7 @@ def app():
|
|||
'Access to mains?': 'Property has access to the mains',
|
||||
},
|
||||
{
|
||||
'uprn': 90048026,
|
||||
'address': '91 Osprey Drive',
|
||||
'postcode': 'DY1 2JS',
|
||||
'Surveyor': 'Carl Fitzgerald - The Warmfront Team',
|
||||
|
|
@ -149,6 +154,7 @@ def app():
|
|||
'Access to mains?': 'Property has access to the mains',
|
||||
},
|
||||
{
|
||||
'uprn': 90093693,
|
||||
'address': '150 Huntingtree Road',
|
||||
'postcode': 'B63 4HP',
|
||||
'Surveyor': 'Carl Fitzgerald - The Warmfront Team',
|
||||
|
|
@ -161,6 +167,7 @@ def app():
|
|||
"North East",
|
||||
},
|
||||
{
|
||||
'uprn': 90051858,
|
||||
'address': '195 Ashenhurst Road',
|
||||
'postcode': 'DY1 2JB',
|
||||
'Surveyor': 'Carl Fitzgerald - The Warmfront Team',
|
||||
|
|
@ -171,6 +178,18 @@ def app():
|
|||
'Orientation': 'Front house direction: South, Back house direction: North',
|
||||
'Access to mains?': 'Property has access to the mains',
|
||||
},
|
||||
{
|
||||
'uprn': 90106884,
|
||||
'address': '27 Milton Road',
|
||||
'postcode': 'WV14 8HZ',
|
||||
'Surveyor': 'Carl Fitzgerald - The Warmfront Team',
|
||||
'Wall Insulation': 'Cavity wall, retro drilled, containing loose fibre insulation. Consider getting a '
|
||||
'CIGA check and extracting the cavity, replacing with bead insulation.',
|
||||
'Wall Render': "Solid render front and rear of property",
|
||||
'Existing solar PV': 'No existing solar',
|
||||
'Orientation': 'Front house direction: South East, Back house direction: North West',
|
||||
'Access to mains?': 'Property has access to the mains',
|
||||
},
|
||||
]
|
||||
|
||||
# TODO: Push the non-invasive results straight to the database from here
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue