-
Notifications
You must be signed in to change notification settings - Fork 91
fix(standings): upcoming and ongoing matches not filtered by swiss standings table #6618
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
base: main
Are you sure you want to change the base?
Conversation
local opponentRoundData = standingsOpponentData.rounds[roundNumber] | ||
opponentRoundData.specialstatus = '' | ||
opponentRoundData.match = match2 | ||
if (not match2.finished) and (#match2.opponents <= 2) 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.
why the #opp <=2 condition?
don't we also want to not count unfinished matches for ffa standings?
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.
don't we also want to not count unfinished matches for ffa standings?
it would make sense to let br/ffa point standings to be updated for every map finish instead of match finish, wouldn't it?
(disclaimer: I haven't read through ffa standings impl)
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.
for normal standings it would also make sense to update based on games in quite a few cases
but that imo is something to solve when adding game support
end | ||
opponentRoundData.specialstatus = '' | ||
opponentRoundData.match = match2 | ||
local matchResult = match2.winner == 0 and 'd' or opponent.placement == 1 and 'w' or 'l' |
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.
Isn't the real place to do the fix here?
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.
if match is not finished then calculating points is somewhat pointless too in swiss
see 5ece1dd
Summary
fixes #6616
How did you test this change?
dev