From e2f6a1b73a7f1fc42e8e74f5de5909a7072835ba Mon Sep 17 00:00:00 2001 From: Michael Simard Date: Wed, 3 Nov 2021 14:19:29 -0500 Subject: [PATCH] nuketown halloween now cold war colour --- Sources/App/Controllers/StatsController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/App/Controllers/StatsController.swift b/Sources/App/Controllers/StatsController.swift index a034c09..bf84808 100644 --- a/Sources/App/Controllers/StatsController.swift +++ b/Sources/App/Controllers/StatsController.swift @@ -148,8 +148,8 @@ struct StatsController: RouteCollection { content1 = "\(statisticItem.wins)-\(statisticItem.losses)" content2 = Utils.getRatio(wins: statisticItem.wins, losses: statisticItem.losses) sortOrder = 41 - backgroundColor = "CC5500" - + backgroundColor = colors.first(where: {$0.gameId == "bocw"})?.tileColour ?? backgroundColor + } else if statisticItem.codTrackerId == "vg_casual"{