From ceb1701b31f20c8c8284dd9546bd5973849673c8 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Wed, 9 Mar 2016 01:36:28 -0500 Subject: exclude internal tags --- src/guff/models/tag.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/guff/models/tag.cr b/src/guff/models/tag.cr index c828ebe..ed3a122 100644 --- a/src/guff/models/tag.cr +++ b/src/guff/models/tag.cr @@ -56,7 +56,8 @@ module Guff if show_all filter = "1 = 1" else - filter = "a.name NOT LIKE '\\_%'" + # exclude internal tags + filter = "substr(a.name, 1, 1) <> '_'" end # exec query -- cgit v1.2.3