From: Shane Jaroch Date: Fri, 21 Jul 2023 16:20:00 +0000 (-0400) Subject: small edit, wip stuff, old X-Git-Tag: v0.2.8.dev0~63 X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=857117c3393f188b99a3d6d6134b5da1df33f145;p=nutratech%2Fcli.git small edit, wip stuff, old --- 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)