@author: shane
"""
+
+# pylint: disable=too-few-public-methods
+class Nutrient:
+ """Tracks properties of nutrients; used in the tree structure of nutrient groups"""
+
+ def __init__(self, nut_id: int, name: str, hidden: bool = False):
+ self.nut_id = nut_id
+ self.name = name
+ self.hidden = hidden
+
+
nnest = {
- "basics": ["Protein", "Carbs", "Fats", "Fiber", "Calories"],
+ # "basics": ["Protein", "Carbs", "Fats", "Fiber", "Calories"],
+ "basics": {
+ # 203: {"name": "Protein", "hidden": False},
+ 203: Nutrient(203, "Protein"),
+ 205: "Carbs",
+ 204: "Fats",
+ 291: "Fiber",
+ 208: "Calories (kcal)",
+ },
"macro_details": {"Carbs": {}, "Fat": {}},
"micro_nutrients": {
"Vitamins": {"Water-Soluble": {}, "Fat-Soluble": {}},