print_header("NUTRITION")
################################################################################
- # Nutrient table
+ # Nutrient tree-view
################################################################################
headers = ["id", "nutrient", "rda", "amount", "units"]
nutrient_rows = []
nutrient_rows.append(row)
- ################################################################################
- # Print table
- ################################################################################
+ ############
+ # Print view
+ # TODO: nested, color-coded tree view
table = tabulate(nutrient_rows, headers=headers, tablefmt="presto")
print(table)
nutrients_rows.append(nutrient_rows)