Skip to content

Commit

Permalink
Add number of properties query to generator
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-strange committed Aug 12, 2024
1 parent 1db5cbd commit 06e0ef9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data/areas/place-page/index.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 06e0ef9

Please sign in to comment.