-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(match2): remove match.vod in favor of match.links.vod #4941
Conversation
@@ -417,8 +417,8 @@ end | |||
---@return {index: number, link: string}[] | |||
function MatchTable:vodsFromRecord(record) | |||
local vods = {} | |||
if String.nilIfEmpty(record.vod) then | |||
vods = {{index = 0, link = record.vod}} | |||
if String.nilIfEmpty(record.links.vod) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
links is not retrieved, you need to adjust the query param in the query calls too (lines 290-291)
@@ -311,7 +311,7 @@ function Details:countdown(matchPageIcon) | |||
|
|||
local gameVods = Array.map(Array.map(match.match2games, Operator.property('vod')), makeVod) | |||
|
|||
countdownDisplay:node(makeVod(match.vod)) | |||
countdownDisplay:node(makeVod(match.links.vod)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to adjust DEFAULT_QUERY_COLUMNS
too
and check if there are places overwriting that default somewhere
and also infobox player on sc2
should probably also update the comment in Module:Lpdb |
Summary
Resolves #4940
Waiting for some standardization from #4939 and backwards compatibility setup in #4822 before this PR can be completed.
https://liquipedia.net/starcraft2/Module:HeadToHead needs to be updated after golive
How did you test this change?