fix typo in handling tag pages

This commit is contained in:
Tangent 2019-06-27 20:59:11 -07:00
parent 35e7e68756
commit c3e02f2596

View File

@ -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