Skip to content

Commit

Permalink
156 - Filters-need-to-be-more-comprehensive - added Intensive English…
Browse files Browse the repository at this point in the history
… Centre to filter (bad boolean logic)
  • Loading branch information
reekypete committed Sep 17, 2015
1 parent d16cf96 commit 624d1f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/Leaflet.SchoolFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ var L, app;
{label: "Boys", name: "boys", sql: "s.gender = 'boys'", matchLabel: "This is a boys school.", mismatchLabel: "Not a boys school.", matchTest: function (s) { return s.gender === 'boys'; }},
{label: "Girls", name: "girls", sql: "s.gender = 'girls'", matchLabel: "This is a girls school.", mismatchLabel: "Not a girls school.", matchTest: function (s) { return s.gender === 'girls'; }},
{label: "Selective option", name: "selective", sql: "s.selective_school IN ('Partially Selective', 'Fully Selective')", matchLabel: "This school offers an academically selective option.", mismatchLabel: "Not offered: academically selective option.", matchTest: function (s) { return s.selective_school === 'Partially Selective' || s.selective_school === 'Fully Selective'; }},
{label: "Intensive English option", name: "intensive_english", sql: "s.intensive_english_centre ", matchLabel: "This school has an Intensive English Centre.", mismatchLabel: "Not offered: Intensive English Centre.", matchTest: function (s) { return s.selective_school === 'Partially Selective' || s.selective_school === 'Fully Selective'; }}, {label: "Specialty option", name: "specialty", sql: "school_specialty_type NOT IN ('Comprehensive')", matchLabel: "This school offers specialized classes", mismatchLabel: "Not offered: specialized classes.", matchTest: function (s) { return s.school_specialty_type !== 'Comprehensive'; }},
{label: "Specialty option", name: "specialty", sql: "school_specialty_type NOT IN ('Comprehensive')", matchLabel: "This school offers specialized classes", mismatchLabel: "Not offered: specialized classes.", matchTest: function (s) { return s.school_specialty_type !== 'Comprehensive'; }},
{label: "Intensive English option", name: "intensive_english", sql: "s.intensive_english_centre ", matchLabel: "This school has an Intensive English Centre.", mismatchLabel: "Not offered: Intensive English Centre.", matchTest: function (s) { return s.intensive_english_centre == true; }},
{label: "Specialty option", name: "specialty", sql: "school_specialty_type NOT IN ('Comprehensive')", matchLabel: "This school offers specialized classes", mismatchLabel: "Not offered: specialized classes.", matchTest: function (s) { return s.school_specialty_type !== 'Comprehensive'; }},
{label: "Distance Classes", name: "distance", sql: "(distance_education IN ('null') OR distance_education IS NULL)", matchLabel: "This is a distance school.", mismatchLabel: "Not a distance schoool", matchTest: function (s) { return s.distance_education !== false; }},
],
options: [
Expand Down

0 comments on commit 624d1f2

Please sign in to comment.