Skip to content

Commit

Permalink
Correctly calculate match badges on match finish
Browse files Browse the repository at this point in the history
  • Loading branch information
thordy committed May 16, 2024
1 parent 2fb2d51 commit f5fcd6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#### Fixed
- Return `outshot_type` for `X01 Handicap`
- Correctly calculate match badges on match finish

## [2.7.0] - 2023-09-12
#### Feature
Expand Down
1 change: 1 addition & 0 deletions data/leg.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ func FinishLeg(visit models.Visit) error {
log.Printf("Added owes of %s from player %d to player %d", match.OweType.Item.String, playerID, visit.PlayerID)
}
}
match.WinnerID = winnerID
log.Printf("Match %d finished with player %d winning", match.ID, winnerID.ValueOrZero())
} else if match.MatchMode.LegsRequired.Valid && playedLegs == int(match.MatchMode.LegsRequired.Int64) {
// Match finished, draw
Expand Down

0 comments on commit f5fcd6d

Please sign in to comment.