From 857117c3393f188b99a3d6d6134b5da1df33f145 Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Fri, 21 Jul 2023 12:20:00 -0400 Subject: [PATCH] small edit, wip stuff, old --- ntclient/services/analyze.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ntclient/services/analyze.py b/ntclient/services/analyze.py index 50b988f..2d5d180 100644 --- a/ntclient/services/analyze.py +++ b/ntclient/services/analyze.py @@ -102,7 +102,7 @@ def foods_analyze(food_ids: set, grams: float = 0) -> tuple: print_header("NUTRITION") ################################################################################ - # Nutrient table + # Nutrient tree-view ################################################################################ headers = ["id", "nutrient", "rda", "amount", "units"] nutrient_rows = [] @@ -123,9 +123,9 @@ def foods_analyze(food_ids: set, grams: float = 0) -> tuple: 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) -- 2.52.0