Module:Tour stats: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 267: Line 267:
table.insert(wheres, "(" .. table.concat(songWheres, ' OR ') .. ")")
table.insert(wheres, "(" .. table.concat(songWheres, ' OR ') .. ")")
end
end
if options['show_songs'] or multiSong then
if options['show_songs'] or multiSong or options['grouping'] == 'Group by song' then
table.insert(groups, "live_songs._ID")
table.insert(groups, "live_songs._ID")
table.insert(fields, "live_songs.name=song")
table.insert(fields, "live_songs.name=song")