Skip to content
Permalink
Browse files

undo earlier TOC program changes

  • Loading branch information...
james-tyner committed Apr 26, 2019
1 parent 8ee7bad commit 7da86ab7b0dc5fc6741c7f629b532ebed39ecf0e
Showing with 1 addition and 7 deletions.
  1. +1 −7 calculateTOCeffectiveness.js
@@ -136,9 +136,6 @@ function calculateTOCYear(year){
// Filter the permits by date
let filteredFeatures = projects.features.filter(feature => feature.properties.date.startsWith(`${year}`));

// Filter the permits to include only projects with at least 5 units, which are the only ones eligible for TOC incentives
projects.features.filter(feature => feature.properties.units >= 5);

// create a total for the city to compare against
for (var project of filteredFeatures){
totalCityUnits += project.properties.units;
@@ -202,11 +199,8 @@ function calculateTOCTotal(){
let projectsFile = fs.readFileSync(`geojson/${zip}.geojson`);
let projects = JSON.parse(projectsFile);

// Filter the permits to include only projects with at least 5 units, which are the only ones eligible for TOC incentives
projects.features.filter(feature => feature.properties.units >= 5);

// create a total for the city to compare against
for (var project of filteredFeatures){
for (var project of projects.features){
totalCityUnits += project.properties.units;
totalCityProjects++;
}

0 comments on commit 7da86ab

Please sign in to comment.
You can’t perform that action at this time.