From 8af3343aa2209fb7ee7ce7c1fea27d65bcb2f181 Mon Sep 17 00:00:00 2001 From: Tangent Date: Wed, 17 Apr 2019 22:17:56 -0700 Subject: [PATCH] notes --- README.md | 2 +- app.moon | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1a74774..bfbf515 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # musicapp -I use this privately for music organization. \ No newline at end of file +I use this privately for music organization. diff --git a/app.moon b/app.moon index 293c1c7..33eb7f2 100644 --- a/app.moon +++ b/app.moon @@ -7,6 +7,7 @@ import Tracks from require "models" class extends lapis.Application "/console": console.make! + -- TODO figure out why [%u] character class does not work [tracks: "/tracks(/:order[%a])(/:asc_desc)(/:page[%d])"]: => @order = tostring(@params.order)\lower! -- validate order field @@ -19,8 +20,6 @@ class extends lapis.Application tracks = Tracks\paginated "* ORDER BY #{@order} #{@asc_desc}", per_page: 32 -- @last_page = tracks\num_pages! -- TODO figure out why this errors @last_page = 150 - -- if true - -- return "success this far" -- validate page if @page < 1 return redirect_to: @url_for "tracks", order: @order, asc_desc: @asc_desc, page: 1