un-automatic trimming
This commit is contained in:
parent
dbedb15725
commit
0bad9154c6
3
app.moon
3
app.moon
@ -62,7 +62,8 @@ class extends lapis.Application
|
||||
@asc_desc = "ASC"
|
||||
@page = tonumber(@params.page) or 1
|
||||
|
||||
tag_pattern = " #{escape_literal unescape(@params.name)} "
|
||||
tag_pattern = escape_literal unescape(@params.name)
|
||||
tag_pattern = "' " .. tag_pattern\sub(2, -2) .. " '"
|
||||
tracks = Tracks\paginated "WHERE tags LIKE #{tag_pattern} ORDER BY #{escape_identifier @order} #{@asc_desc}", per_page: 32
|
||||
@last_page = 1
|
||||
if tag = Tags\find name: unescape(@params.name)
|
||||
|
Reference in New Issue
Block a user