Skip to content

Commit

Permalink
feat(infobox): use highlight conditions to determine sponsored catego…
Browse files Browse the repository at this point in the history
…ry on CS (#5291)

* fix(infobox): use highlight conditions to determine sponsored category on CS

* remove log that salt added on dev 😅

whoops
  • Loading branch information
iMarbot authored Jan 9, 2025
1 parent 0e370eb commit 1385cc9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ local Variables = require('Module:Variables')

local Currency = Lua.import('Module:Currency')
local Game = Lua.import('Module:Game')
local HighlightConditions = Lua.import('Module:HighlightConditions')
local InfoboxPrizePool = Lua.import('Module:Infobox/Extensions/PrizePool')
local Injector = Lua.import('Module:Widget/Injector')
local League = Lua.import('Module:Infobox/League')
Expand Down Expand Up @@ -227,7 +228,7 @@ function CustomLeague:getWikiCategories(args)
table.insert(categories, 'ESL Pro Tour Tournaments')
end

if self.valveTier then
if HighlightConditions.tournament(self.data) then
table.insert(categories, 'Valve Sponsored Tournaments')
end

Expand Down

0 comments on commit 1385cc9

Please sign in to comment.