From 06e0ef91d62f5b4f4f25d3b82208048c68cda142 Mon Sep 17 00:00:00 2001 From: luke-strange <92686634+luke-strange@users.noreply.github.com> Date: Mon, 12 Aug 2024 12:38:20 +0100 Subject: [PATCH] Add number of properties query to generator --- src/data/areas/place-page/index.page.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/areas/place-page/index.page.ts b/src/data/areas/place-page/index.page.ts index 4800620..04bdde8 100644 --- a/src/data/areas/place-page/index.page.ts +++ b/src/data/areas/place-page/index.page.ts @@ -6,7 +6,7 @@ var N_PAGES = Deno.env.get('N_PAGES'); // import { smallSiteAreas } from "../../../../dev.ts"; import smallSiteAreas from "../../../../dev.ts"; -export default function* ({areas, vacantHomesHeadlines, affordableHomes, medianHousePrice, pctVacantHomes, householdProjections, population}) { +export default function* ({areas, vacantHomesHeadlines, affordableHomes, medianHousePrice, pctVacantHomes, householdProjections, population, properties}) { if (SMALL_SITE === true) { if (!N_PAGES) { N_PAGES=10 @@ -33,6 +33,7 @@ export default function* ({areas, vacantHomesHeadlines, affordableHomes, medianH medianHousePrice: medianHousePrice(key), pctVacantHomes: pctVacantHomes(key), pop: population(key), + n_of_properties: properties(key), householdProjections: hp, areas: null, // mask the areas data from other pages. key: null,