5,478
edits
mNo edit summary |
mNo edit summary |
||
Line 59: | Line 59: | ||
limit = '1000', | limit = '1000', | ||
where = 'Album_Songs.singers HOLDS "' .. escaped .. '"', | where = 'Album_Songs.singers HOLDS "' .. escaped .. '"', | ||
orderBy = "Album_Songs. | orderBy = "Album_Songs.song_page ASC" | ||
} | } | ||
local fields = { ' | local fields = { 'song_page', 'album', 'type', 'singers' } | ||
local results = cargo.query('Album_Songs', table.concat(fields, ','), query) | local results = cargo.query('Album_Songs', table.concat(fields, ','), query) | ||
Line 78: | Line 78: | ||
if type ~= nil then | if type ~= nil then | ||
if not groups[result. | if not groups[result.song_page] then groups[result.song_page] = {} end | ||
table.insert(groups[result. | table.insert(groups[result.song_page], { album = result.album, type = type }) | ||
end | end | ||
end | end |