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]