3,726
edits
MusikAnimal (talk | contribs) No edit summary |
MusikAnimal (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 314: | Line 314: | ||
if options['length'] and options['length'] ~= 'No' then | if options['length'] and options['length'] ~= 'No' then | ||
local secs = require('Module:Live song')._time_to_seconds(options['length']) | local secs = require('Module:Live song')._time_to_seconds(options['length']) | ||
table.insert(wheres, "live_songs. | table.insert(wheres, "live_songs.seconds >= " .. secs) | ||
end | end | ||
Line 407: | Line 407: | ||
result['multi_song'] = '1' | result['multi_song'] = '1' | ||
end | end | ||
list:node( | local success, row_node = pcall(get_row, result) | ||
if success == false then | |||
error('Too many results! Try narrowing your search criteria') | |||
else | |||
list:node(row_node) | |||
end | |||
-- For counts | -- For counts |