Skip to content

Commit

Permalink
some easy ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Oct 15, 2024
1 parent f235255 commit 07a9bb7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 62 deletions.
10 changes: 1 addition & 9 deletions components/match2/wikis/heroes/match_group_input_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function CustomMatchGroupInput.processMatch(match, options)
Table.mergeInto(match, MatchGroupInputUtil.getTournamentContext(match))

match.stream = Streams.processStreams(match)
match.links = MatchFunctions.getLinks(match)
match.links = MatchGroupInputUtil.getLinks(match)

match.games = games
match.opponents = opponents
Expand Down Expand Up @@ -141,14 +141,6 @@ function MatchFunctions.getBestOf(match)
return bestOf or DEFAULT_BESTOF
end

---@param match table
---@return table
function MatchFunctions.getLinks(match)
return {
reddit = match.reddit
}
end

---@param match table
---@return table
function MatchFunctions.getExtraData(match)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function CustomMatchGroupInput.processMatch(match, options)
Table.mergeInto(match, MatchGroupInputUtil.getTournamentContext(match))

match.stream = Streams.processStreams(match)
match.links = MatchFunctions.getLinks(match)
match.links = MatchGroupInputUtil.getLinks(match)

match.games = games
match.opponents = opponents
Expand Down Expand Up @@ -151,14 +151,6 @@ function MatchFunctions.getBestOf(match)
return bestOf or DEFAULT_BESTOF
end

---@param match table
---@return table
function MatchFunctions.getLinks(match)
return {
reddit = match.reddit,
}
end

---@param match table
---@return table
function MatchFunctions.getExtraData(match)
Expand Down
11 changes: 1 addition & 10 deletions components/match2/wikis/splitgate/match_group_input_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function CustomMatchGroupInput.processMatch(match, options)
Table.mergeInto(match, MatchGroupInputUtil.getTournamentContext(match))

match.stream = Streams.processStreams(match)
match.links = MatchFunctions.getLinks(match)
match.links = MatchGroupInputUtil.getLinks(match)

match.games = games
match.opponents = opponents
Expand Down Expand Up @@ -144,15 +144,6 @@ function MatchFunctions.calculateMatchScore(maps)
end
end

---@param match table
---@return table
function MatchFunctions.getLinks(match)
return {
esl = match.esl and ('https://play.eslgaming.com/match/' .. match.esl) or nil,
stats = match.stats,
}
end

---@param match table
---@return table
function MatchFunctions.getExtraData(match)
Expand Down
12 changes: 1 addition & 11 deletions components/match2/wikis/warcraft/match_group_input_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function CustomMatchGroupInput.processMatch(match, options)

match.stream = Streams.processStreams(match)
match.vod = Logic.nilIfEmpty(match.vod)
match.links = MatchFunctions.getLinks(match)
match.links = MatchGroupInputUtil.getLinks(match)
match.extradata = MatchFunctions.getExtraData(match, #games)

match.games = games
Expand Down Expand Up @@ -217,16 +217,6 @@ function MatchFunctions.getBestOf(bestofInput)
return bestof
end

---@param match table
---@return table
function MatchFunctions.getLinks(match)
return {
preview = match.preview,
review = match.review,
recap = match.recap,
}
end

---@param match table
---@param numberOfGames integer
---@return table
Expand Down
10 changes: 1 addition & 9 deletions components/match2/wikis/wildrift/match_group_input_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function CustomMatchGroupInput.processMatch(match, options)
Table.mergeInto(match, MatchGroupInputUtil.getTournamentContext(match))

match.stream = Streams.processStreams(match)
match.links = MatchFunctions.getLinks(match)
match.links = MatchGroupInputUtil.getLinks(match)

match.games = games
match.opponents = opponents
Expand Down Expand Up @@ -145,14 +145,6 @@ function MatchFunctions.getBestOf(match)
return bestOf or DEFAULT_BESTOF
end

---@param match table
---@return table
function MatchFunctions.getLinks(match)
return {
reddit = match.reddit,
}
end

---@param match table
---@return table
function MatchFunctions.getExtraData(match)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function CustomMatchGroupInput.processMatch(match, options)
Table.mergeInto(match, MatchGroupInputUtil.getTournamentContext(match))

match.stream = Streams.processStreams(match)
match.links = MatchFunctions.getLinks(match)
match.links = MatchGroupInputUtil.getLinks(match)

match.games = games
match.opponents = opponents
Expand Down Expand Up @@ -145,12 +145,6 @@ function MatchFunctions.calculateMatchScore(maps)
end
end

---@param match table
---@return table
function MatchFunctions.getLinks(match)
return {}
end

---@param match table
---@return table
function MatchFunctions.getExtraData(match)
Expand Down
8 changes: 1 addition & 7 deletions components/match2/wikis/zula/match_group_input_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function CustomMatchGroupInput.processMatch(match, options)
Table.mergeInto(match, MatchGroupInputUtil.getTournamentContext(match))

match.stream = Streams.processStreams(match)
match.links = MatchFunctions.getLinks(match)
match.links = MatchGroupInputUtil.getLinks(match)

match.games = games
match.opponents = opponents
Expand Down Expand Up @@ -138,12 +138,6 @@ function MatchFunctions.calculateMatchScore(maps)
end
end

---@param match table
---@return table
function MatchFunctions.getLinks(match)
return {}
end

---@param match table
---@return table
function MatchFunctions.getExtraData(match)
Expand Down

0 comments on commit 07a9bb7

Please sign in to comment.