Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #364 from aspriddell/update-match-counter
Browse files Browse the repository at this point in the history
add matches played to include()
  • Loading branch information
aspriddell authored Jan 18, 2023
2 parents c3fcd0a + bda0e43 commit a90ae6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DragonFruit.Six.Api/Legacy/Entities/LegacyPlaylistStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public void Include(SeasonalStats stats, bool includeAbandonsAsLosses = true)
Wins += stats.Wins;
Losses += stats.Losses;

MatchesPlayed += stats.Wins + stats.Losses + stats.Abandons;

if (includeAbandonsAsLosses)
{
Losses += stats.Abandons;
Expand Down

0 comments on commit a90ae6d

Please sign in to comment.