Module:Tour stats: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 103: Line 103:


if full ~= '' and full ~= nil then
if full ~= '' and full ~= nil then
after_sql = ' AND tease = 0 AND abandoned = 0 AND prerecorded = 0'
after_sql = ' AND tease = 0 AND abandoned = 0 AND soundcheck = 0 AND prerecorded = 0'
end
end


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.length >= " .. secs)
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(get_row(result))
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