minkimcello / landscape3

Landscape 3.0
0 stars 0 forks source link

Modify subcategoryBreakdown to include parent category in landscape_stats.json #28

Closed aq1e closed 8 months ago

aq1e commented 8 months ago

16

Motivation

With how subcategoryBreakdown was generated before, we were missing the information of what category each subcategory goes under. Now subcategoryBreakdown is categorized to display the number of projects by subcategory under each category.

Approach

An additional level is added to the subcategoryBreakdown object. Now each category is a key to subcategoryBreakdown, and its corresponding value is an object containing the breakdown of subcategories.