From b04a2afd077e3cea8481677d36fe5a9663a29ece Mon Sep 17 00:00:00 2001 From: Tangent Date: Thu, 13 Jun 2019 08:24:07 -0700 Subject: [PATCH] typo w selecting next/previous track --- models/Tracks.moon | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/models/Tracks.moon b/models/Tracks.moon index dab8d7d..1d2a9dc 100644 --- a/models/Tracks.moon +++ b/models/Tracks.moon @@ -2,20 +2,20 @@ import Model, enum from require "lapis.db.model" class Tracks extends Model next: => - return @select("WHERE id < ? ORDER BY id DESC LIMIT 1", @id)[1] + return Tracks\select("WHERE id < ? ORDER BY id DESC LIMIT 1", @id)[1] previous: => - return @select("WHERE id > ? ORDER BY id ASC LIMIT 1", @id)[1] + return Tracks\select("WHERE id > ? ORDER BY id ASC LIMIT 1", @id)[1] @statuses: enum { - new: 1 - downloaded: 2 - owned: 3 - duplicate: 4 - ignored: 5 - imported: 6 + new: 1 -- needs to be checked out / downloaded / bought + downloaded: 2 -- illegal + owned: 3 -- legal! + duplicate: 4 -- needs to be deleted + ignored: 5 -- don't want it + imported: 6 -- needs to be checked out } @qualities: enum { - not_available: 1 + not_available: 1 -- not in library lossless: 2 high: 3 acceptable: 4