Module:Songs: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 58: | Line 58: | ||
local query = { | local query = { | ||
limit = '1000', | limit = '1000', | ||
where = 'Album_Songs.singers HOLDS "' .. escaped .. '"' | where = 'Album_Songs.singers HOLDS "' .. escaped .. '"' | ||
} | } | ||
local results = cargo.query(query) | local fields = {'song_title', 'album'} | ||
local results = cargo.query('Album_Songs', table.concat(fields, ','), query) | |||
local table = '{| class="wikitable sortable mw-collapsible"\n! Song !! Album\n' | local table = '{| class="wikitable sortable mw-collapsible"\n! Song !! Album\n' |