]> Nutra Git (v1) - nutratech/nt-sqlite.git/commitdiff
pycharm inspection, small fixes
authorShane Jaroch <chown_tee@proton.me>
Sun, 24 Jul 2022 18:31:01 +0000 (14:31 -0400)
committerShane Jaroch <chown_tee@proton.me>
Sun, 24 Jul 2022 18:31:01 +0000 (14:31 -0400)
sql/functions.sql

index d669b63c8000bab703d8a290bc2a520de3bb7d2b..d6e5c920d08967ce300aed701184789d85d25bbd 100644 (file)
@@ -7,9 +7,9 @@ SELECT
   name,
   COUNT(recipe_id) AS n_foods,
   SUM(grams) AS grams,
-  created
+  recipe.created AS created
 FROM
-  recipes
+  recipe
   LEFT JOIN recipe_dat ON recipe_id = id
 GROUP BY
   id;