typo w selecting next/previous track
This commit is contained in:
parent
ff91406536
commit
b04a2afd07
@ -2,20 +2,20 @@ import Model, enum from require "lapis.db.model"
|
|||||||
|
|
||||||
class Tracks extends Model
|
class Tracks extends Model
|
||||||
next: =>
|
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: =>
|
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 {
|
@statuses: enum {
|
||||||
new: 1
|
new: 1 -- needs to be checked out / downloaded / bought
|
||||||
downloaded: 2
|
downloaded: 2 -- illegal
|
||||||
owned: 3
|
owned: 3 -- legal!
|
||||||
duplicate: 4
|
duplicate: 4 -- needs to be deleted
|
||||||
ignored: 5
|
ignored: 5 -- don't want it
|
||||||
imported: 6
|
imported: 6 -- needs to be checked out
|
||||||
}
|
}
|
||||||
@qualities: enum {
|
@qualities: enum {
|
||||||
not_available: 1
|
not_available: 1 -- not in library
|
||||||
lossless: 2
|
lossless: 2
|
||||||
high: 3
|
high: 3
|
||||||
acceptable: 4
|
acceptable: 4
|
||||||
|
Reference in New Issue
Block a user