Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tabulator-another
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
tabulator-another
Commits
95ee7e93
Commit
95ee7e93
authored
Jun 21, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update src/tournament-rules/rules/swiss.ts, src/tournament/entities/Tournament.entity.ts files
parent
bee7524b
Pipeline
#37944
passed with stages
in 5 minutes and 42 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/tournament-rules/rules/swiss.ts
src/tournament-rules/rules/swiss.ts
+1
-1
src/tournament/entities/Tournament.entity.ts
src/tournament/entities/Tournament.entity.ts
+1
-1
No files found.
src/tournament-rules/rules/swiss.ts
View file @
95ee7e93
...
...
@@ -100,7 +100,7 @@ export class Swiss extends TournamentRuleBase {
const
opponents
=
opponentIds
.
map
((
id
)
=>
this
.
participantMap
.
get
(
id
));
return
{
tieBreaker
:
_
.
sumBy
(
opponents
,
(
p
)
=>
p
.
score
.
score
),
score
:
participant
.
quit
?
-
1
:
participant
.
score
,
...(
participant
.
quit
?
{
score
:
-
1
}
:
{})
};
}
}
src/tournament/entities/Tournament.entity.ts
View file @
95ee7e93
...
...
@@ -249,7 +249,7 @@ export class Tournament extends DescBase {
Object
.
assign
(
p
.
score
,
rule
.
participantScore
(
p
));
});
const
editScores
=
this
.
participants
.
map
((
p
)
=>
rule
.
participantScoreAfter
(
p
));
this
.
participants
.
forEach
((
p
,
i
)
=>
Object
.
assign
(
p
,
editScores
[
i
]))
this
.
participants
.
forEach
((
p
,
i
)
=>
Object
.
assign
(
p
.
score
,
editScores
[
i
]))
this
.
participants
=
_
.
sortBy
(
this
.
participants
,
(
p
)
=>
-
p
.
score
.
score
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment