Content deleted Content added
m rm { |
simplify, make more robust |
||
Line 22:
local function get_year(colors, year)
year = tonumber(year)
if year and (year > 0) and colors and colors[6] and type(colors[6] == 'table') then
local end_year = nil
for k in pairs(colors[6]) do
Line 66 ⟶ 67:
end
▲ colors = get_year(color_data[team], year)
if ( colors and type(colors) == 'string' ) then
|