]> Nutra Git (v2) - nutratech/cli.git/commitdiff
test coverage, *shrugs*
authorShane Jaroch <chown_tee@proton.me>
Sun, 25 Feb 2024 20:28:33 +0000 (15:28 -0500)
committerShane Jaroch <chown_tee@proton.me>
Sun, 25 Feb 2024 20:28:33 +0000 (15:28 -0500)
ntclient/core/nutprogbar.py
ntclient/utils/tree.py

index c9b9e921d1405cebc6ed17c1ff6aa9dcca1b6033..2448e45407eca8b3b77ffeee91d6748081c9ddee 100644 (file)
@@ -52,16 +52,6 @@ def nutrient_progress_bars(
             else:
                 nut_amts[int(nutrient_id)] += amt * ratio
 
-    # nut_percs = {}
-    # for nutrient_id, amt in nut_amts.items():
-    #     # TODO: if not rda, show raw amounts?
-    #     if isinstance(_nutrients[nutrient_id][1], float):
-    #         # print(type(_nutrients[nutrient_id][1]), _nutrients[nutrient_id])
-    #         nut_percs[nutrient_id] = round(amt / _nutrients[nutrient_id][1], 3)
-    #     else:
-    #         print(type(_nutrients[nutrient_id][1]), _nutrients[nutrient_id])
-    #         continue
-
     print_bars()
     return nut_amts
 
index 9a50a7e2a561752954d5787b3481ab1fcf7fd36f..5aa59b2da8b9d895e8b7d020cd90a60ad9e68071 100644 (file)
@@ -26,7 +26,7 @@ def colorize(path: str, full: bool = False) -> str:
     file = path if full else os.path.basename(path)
 
     if os.path.islink(path):
-        return "".join(
+        return "".join(  # pragma: no cover
             [
                 COLOR_LINK,
                 file,