From ffb5d0b740e3fa23143ad89dab29a44d5b0acd34 Mon Sep 17 00:00:00 2001 From: Tim Date: Sat, 31 May 2025 17:03:51 +0200 Subject: Add real data to home page + add search logic + add recipe pages --- src/chef/pages/admin.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/chef/pages/admin.clj') diff --git a/src/chef/pages/admin.clj b/src/chef/pages/admin.clj index 25f99a6..8ffadcc 100644 --- a/src/chef/pages/admin.clj +++ b/src/chef/pages/admin.clj @@ -89,7 +89,7 @@ (jdbc/execute! @cdb/db))) (->> (sql/format {:select [:*] :from [:categories] - :where [:and [:is :parent :null] [:> :id 0]]}) + :where [:= :parent -1]}) (jdbc/execute! @cdb/db)))] [:h2 "Rezepte"] [:table -- cgit v1.2.3