Skip to content

Commit

Permalink
Enable ppt import on warcraft starting 2023-10-16 (#3386)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpalpha authored Oct 15, 2023
1 parent 59df874 commit a308e6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/prize_pool/wikis/warcraft/prize_pool_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

local Arguments = require('Module:Arguments')
local Class = require('Module:Class')
local DateExt = require('Module:Date/Ext')
local Lua = require('Module:Lua')
local Logic = require('Module:Logic')
local Namespace = require('Module:Namespace')
Expand All @@ -24,6 +25,7 @@ local CustomLpdbInjector = Class.new(LpdbInjector)
local CustomPrizePool = {}

local PRIZE_TYPE_POINTS = 'POINTS'
local AUTOMATION_START_DATE = '2023-10-16'

-- Template entry point
function CustomPrizePool.run(frame)
Expand All @@ -32,8 +34,8 @@ function CustomPrizePool.run(frame)
-- adjust import settings params
args.allGroupsUseWdl = Logic.emptyOr(args.allGroupsUseWdl, true)
args.groupScoreDelimiter = '-'
-- currently no match2 implemented; enable once it is with the date it goes live as switch date
args.import = Logic.emptyOr(args.import, false)
-- match2 implemented as of 2023-10-15
args.import = Logic.nilOr(args.import, DateExt.getContextualDateOrNow() >= AUTOMATION_START_DATE)

local prizePool = PrizePool(args)

Expand Down

0 comments on commit a308e6d

Please sign in to comment.