update readme link to cms

This commit is contained in:
Travis Shears 2026-03-09 19:40:25 +01:00
parent e5e428165f
commit c60a0e1de0
Signed by: travisshears
GPG key ID: CB9BF1910F3F7469
2 changed files with 1 additions and 2 deletions

View file

@ -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/).

View file

@ -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]