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
|
||||
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
|
||||
|
Reference in New Issue
Block a user