fix typo in handling tag pages
This commit is contained in:
parent
35e7e68756
commit
c3e02f2596
2
app.moon
2
app.moon
@ -64,7 +64,7 @@ class extends lapis.Application
|
||||
|
||||
tracks = Tracks\paginated "WHERE tags LIKE ? ORDER BY #{escape_identifier @order} #{@asc_desc}", escape_tag(unescape(@params.name)), per_page: 32
|
||||
@last_page = 1
|
||||
if tag = Tags\find(:name)
|
||||
if tag = Tags\find name: unescape(@params.name)
|
||||
@last_page = 1 + math.floor tag.count / 32
|
||||
-- validate page
|
||||
if @page < 1
|
||||
|
Reference in New Issue
Block a user