diff --git a/.idea/Model.iml b/.idea/Model.iml index 9812b63d..091102ce 100644 --- a/.idea/Model.iml +++ b/.idea/Model.iml @@ -6,7 +6,7 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index b4d05b45..987d6c57 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + diff --git a/backend/app/plan/router.py b/backend/app/plan/router.py index bd4492f6..1d57c323 100644 --- a/backend/app/plan/router.py +++ b/backend/app/plan/router.py @@ -76,7 +76,9 @@ async def trigger_plan(body: PlanTriggerRequest): logger.info("Check if property is in conservation area") for p in input_properties: - in_conservation_area = [x for x in in_conservation_area_data if x['uprn'] == int(p.data['uprn'])][0] + in_conservation_area = [x for x in in_conservation_area_data if x['uprn'] == int(p.data['uprn'])][0].get( + "is_in_conservation_area" + ) p.set_is_in_conservation_area(in_conservation_area) return {"message": "Plan complete"}