From c60a0e1de066b18d1ae0adb3b815697c213c1c03 Mon Sep 17 00:00:00 2001 From: Travis Shears Date: Mon, 9 Mar 2026 19:40:25 +0100 Subject: [PATCH] update readme link to cms --- README.md | 2 +- src/snippets/infra/db.clj | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index aaa33d9..df3ddf8 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Backend application to store my code snippets and make them available via REST API. -[CLI CMS Companion Project](https://git.sr.ht/~travisshears/code-snippets-cli-cms) +[TUI CMS / MCP server companion project](https://git.travisshears.com/travisshears/snippets_cms) This project is written in [Clojure](https://clojure.org/) and data is stored in [XTDB](https://xtdb.dev/). diff --git a/src/snippets/infra/db.clj b/src/snippets/infra/db.clj index ba84fdb..f7ab667 100644 --- a/src/snippets/infra/db.clj +++ b/src/snippets/infra/db.clj @@ -47,7 +47,6 @@ (xt/execute-tx client [[:patch-docs :snippets (merge {:xt/id id} patch)]])) (defn list-tags [] - ;; (xt/q client '(-> (from :snippets [{:xt/id id} tags]) (unnest {:tag tags}) (without :tags) (aggregate tag {:ids (array-agg id)})))) (xt/q client '(-> (from :snippets [{:xt/id id} tags]) (unnest {:tag tags}) (without :tags) (aggregate tag {:count (count id)})))) (defn get-snippets-by-tag [tag]