Skip to content

Commit 84da937

Browse files
Merge pull request #182 from CodeForPhilly/feat/zbl-heightslider
working sort, height, spread, and infinate scroll
2 parents c28a647 + c3767da commit 84da937

File tree

4 files changed

+782
-242
lines changed

4 files changed

+782
-242
lines changed

download.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,20 @@ async function downloadMain() {
131131
clean.Superplant = sp;
132132
clean.Showy = clean.Showy === 'Yes';
133133

134+
// Convert height and spread to numbers
135+
if (clean['Height (feet)']) {
136+
const heightNum = parseFloat(clean['Height (feet)']);
137+
if (!isNaN(heightNum)) {
138+
clean['Height (feet)'] = heightNum;
139+
}
140+
}
141+
if (clean['Spread (feet)']) {
142+
const spreadNum = parseFloat(clean['Spread (feet)']);
143+
if (!isNaN(spreadNum)) {
144+
clean['Spread (feet)'] = spreadNum;
145+
}
146+
}
147+
134148
// Process articles for this plant
135149
clean.Articles = [];
136150
for (const record of articleRecords) {

0 commit comments

Comments
 (0)