From 5dc71a41948dc863be70eea340aa19c2c015be99 Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Sun, 22 Jan 2023 12:28:30 +0100 Subject: [PATCH] fix last year map display fixes https://github.com/colouring-cities/colouring-core/issues/12 --- app/src/tiles/dataDefinition.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/tiles/dataDefinition.ts b/app/src/tiles/dataDefinition.ts index 4aa0bcd7..763bc01d 100644 --- a/app/src/tiles/dataDefinition.ts +++ b/app/src/tiles/dataDefinition.ts @@ -154,8 +154,8 @@ const LAYER_QUERIES = { INNER JOIN buildings ON building_properties.building_id = buildings.building_id`, planning_applications_status_recent: `SELECT buildings.geometry_id, building_properties.uprn, building_properties.building_id, planning_data.status AS status, planning_data.uprn, - 1 AS days_since_decision_date, - 1 AS days_since_registered_with_local_authority_date + planning_data.days_since_decision_date_cached AS days_since_decision_date, + planning_data.days_since_registration_cached AS days_since_registered_with_local_authority_date FROM building_properties INNER JOIN planning_data ON building_properties.uprn = planning_data.uprn INNER JOIN buildings ON building_properties.building_id = buildings.building_id`,