Skip to content

Commit

Permalink
Dont include hidden factions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hesketh committed Jun 22, 2024
1 parent 2b2179a commit 04a0987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API/Controllers/StatsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public ActionResult<Statistics> GetPlayersFactions(Guid personIdentifier)
var overall = new Statistics();

var statsLookup = new Dictionary<Guid, Statistic>();
foreach (var faction in _db.Factions)
foreach (var faction in _db.Factions.Where(x => !x.HideFromStatistics))
{
statsLookup[faction.Identifier] = new Statistic(faction.Name, faction.Identifier);
}
Expand Down

0 comments on commit 04a0987

Please sign in to comment.