Added missing orientations

This commit is contained in:
Khalim Conn-Kowlessar 2024-07-25 18:47:43 +01:00
parent 4192ee7d69
commit 78066563ce
2 changed files with 9 additions and 2 deletions

View file

@ -650,10 +650,14 @@ class XmlParser:
}
orientation_lookup = {
"3": "East",
"5": "South",
"1": "North",
"2": "North East",
"3": "East",
"4": "South East",
"5": "South",
"6": "South West",
"7": "West",
"8": "North West"
}
self.windows = [

View file

@ -42,6 +42,9 @@ def main():
logger.info(f"Exatracted XMLS for the energy assessments")
# TODO: IF we have many uploads, we can do them in a batch so we don't try and upload huge amounts of data to
# the database at onece
# For each property, we download the xmls and extract the data
database_data = []
for uprn, xmls in assessments_map.items():