Skip to content

Commit 9ea1c78

Browse files
committed
kick redundant constant
1 parent ee31e53 commit 9ea1c78

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lua/wikis/commons/TournamentsSummaryTable.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ local Comparator = Condition.Comparator
3131
local BooleanOperator = Condition.BooleanOperator
3232
local ColumnName = Condition.ColumnName
3333

34-
local SECONDS_PER_DAY = DateExt.daysToSeconds(1)
35-
3634
local _today = os.date('!%Y-%m-%d', os.time())
3735

3836
-- Default settings
@@ -216,9 +214,9 @@ function TournamentsSummaryTable.dateConditions(type)
216214

217215
local currentTime = os.time()
218216
local upcomingThreshold = os.date('!%Y-%m-%d', currentTime
219-
+ TournamentsSummaryTable.upcomingOffset * SECONDS_PER_DAY)
217+
+ DateExt.daysToSeconds(TournamentsSummaryTable.upcomingOffset))
220218
local completedThreshold = os.date('!%Y-%m-%d', currentTime
221-
- TournamentsSummaryTable.completedOffset * SECONDS_PER_DAY)
219+
- DateExt.daysToSeconds(TournamentsSummaryTable.completedOffset))
222220

223221
if type == TournamentsSummaryTable.upcomingType then
224222
conditions

0 commit comments

Comments
 (0)