aboutsummaryrefslogtreecommitdiff
path: root/src/guff/models/tag.cr
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-03-09 01:36:28 -0500
committerPaul Duncan <pabs@pablotron.org>2016-03-09 01:36:28 -0500
commitceb1701b31f20c8c8284dd9546bd5973849673c8 (patch)
tree8eeddd349f8382db71954a2bcb2ff03af09dc321 /src/guff/models/tag.cr
parent5f3b78f7570e64e7337ebbf6a8d399366c4c75fd (diff)
downloadold-guff-ceb1701b31f20c8c8284dd9546bd5973849673c8.tar.bz2
old-guff-ceb1701b31f20c8c8284dd9546bd5973849673c8.zip
exclude internal tags
Diffstat (limited to 'src/guff/models/tag.cr')
-rw-r--r--src/guff/models/tag.cr3
1 files changed, 2 insertions, 1 deletions
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