]> Nutra Git (v1) - nutratech/usda-sqlite.git/commitdiff
black .
authorShane Jaroch <chown_tee@proton.me>
Sat, 2 Mar 2024 19:23:39 +0000 (14:23 -0500)
committerShane Jaroch <chown_tee@proton.me>
Sat, 2 Mar 2024 19:23:39 +0000 (14:23 -0500)
data/process.py
sql/latest_version.py

index ae1f9a2843afe22d0f9de8d33bc9cc7fd32cf545..6e5a72544a3991403c23e9a6fd8c4278e210204d 100644 (file)
@@ -69,7 +69,7 @@ with open("rda.csv") as file:
 
 
 def main(args):
-    """ Processes the USDA data to get ready for ntdb """
+    """Processes the USDA data to get ready for ntdb"""
 
     # -----------------
     # Process USDA csv
@@ -98,7 +98,7 @@ def main(args):
 # Handle general file
 # ----------------------
 def process(rows, fname):
-    """ Processes FD_GRP only :O """
+    """Processes FD_GRP only :O"""
 
     with open(output_files[fname], "w+") as file:
         writer = csv.writer(file, lineterminator="\n")
@@ -109,7 +109,7 @@ def process(rows, fname):
 # Nutrient defs
 # -----------------
 def process_nutr_def():
-    """ Process nutr_def """
+    """Process nutr_def"""
 
     def process_main(rows):
         result = []
index 0cd53a6501b3b7ff48dcee5a6b67c5ac3929de9b..4a34fe8b7ea235fac38e6fa63d6442b85a250422 100644 (file)
@@ -12,9 +12,7 @@ import os
 SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
 
 try:
-    version_csv_path = os.path.join(
-        SCRIPT_DIR, "version.csv"
-    )
+    version_csv_path = os.path.join(SCRIPT_DIR, "version.csv")
 
     rows = []
     with open(version_csv_path, "r", encoding="utf-8") as _r_file: