Skip to content

Commit

Permalink
fix: refactor around category rather than categories
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Sep 13, 2022
1 parent 0c5cb44 commit bb60819
Show file tree
Hide file tree
Showing 7 changed files with 2,135 additions and 2,125 deletions.
2 changes: 1 addition & 1 deletion bin/find-entities-to-label.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function computeAllStats(dataset) {
name: 'All Other 3rd Parties',
homepage: '#by-category',
domain: '<all others>',
categories: ['other'],
category: 'other',
}

const sortedEntityData = _(entityData.concat(homelessMegaEntity))
Expand Down
2 changes: 1 addition & 1 deletion bin/generate-canonical-domain-csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const entries = Array.from(observedDomains)
return [domain, domain, 'unknown']
}

return [domain, entity.domains[0], entity.categories[0] || 'other']
return [domain, entity.domains[0], entity.category || 'other']
})
.filter(Boolean)

Expand Down
Loading

1 comment on commit bb60819

@vercel
Copy link

@vercel vercel bot commented on bb60819 Sep 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.