Module:Tour stats: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 310: Line 310:
end
end
if options['country'] then
if options['country'] then
table.insert(where, "country = \"" .. options['country'] .. "\"")
table.insert(wheres, "country = \"" .. options['country'] .. "\"")
end
end
if options['venue'] then
if options['venue'] then
table.insert(where, "venue = \"" .. options['venue'] .. "\"")
table.insert(wheres, "venue = \"" .. options['venue'] .. "\"")
end
end
if options['tour'] then
if options['tour'] then
table.insert(where, "tour = \"" .. options['tour'] .. "\"")
table.insert(wheres, "tour = \"" .. options['tour'] .. "\"")
end
end
if options['date_after'] then
if options['date_after'] then
table.insert(where, "date >= \"" .. options['date_after'] .. "\"")
table.insert(wheres, "date >= \"" .. options['date_after'] .. "\"")
end
end
if options['date_before'] then
if options['date_before'] then
table.insert(where, "date <= \"" .. options['date_before'] .. "\"")
table.insert(wheres, "date <= \"" .. options['date_before'] .. "\"")
end
end