From 168dd2fa9a7a37c0e0dc299a15577c3ec7c0ba33 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 27 Feb 2012 23:53:18 +0100 Subject: Book Marx: Improve tag autocompletion. --- src/mulk/benki/book_marx.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mulk/benki/book_marx.clj b/src/mulk/benki/book_marx.clj index 9eabfc1..0f6553b 100644 --- a/src/mulk/benki/book_marx.clj +++ b/src/mulk/benki/book_marx.clj @@ -128,7 +128,7 @@ (defpage "/marx/tags" {} (with-auth (with-dbt - (sql/with-query-results tags ["SELECT tag FROM bookmark_tags"] + (sql/with-query-results tags ["SELECT DISTINCT tag FROM bookmark_tags ORDER BY tag ASC"] (response/json (doall (map :tag tags))))))) (defmacro ignore-errors [& body] -- cgit v1.2.3