Documentation for this module may be created at Module:GetSessions/doc

local p = {}
local extdata = mw.ext.externalData

function p.Main()
	local t = extdata.getDbData({
	   db="helix",
	   from="wiki_sessions",
	   ["order by"]="start desc",
	   data="server_round, map, start, end, players"
	})

	local out = {}
	for k, v in pairs(t) do
	   table.insert(out, v.map)
	end
	return table.concat(out, "<br>")
end

return p


Categories: