From daf35ea4b448aa0fcd2d8cbbbc3b3f1327c17e55 Mon Sep 17 00:00:00 2001 From: GAM Date: Sat, 5 Jun 2021 10:54:58 +0200 Subject: [PATCH] one week gap between matchday 13 and 14 --- src/main/java/app/views/matchday/components/MatchdayCard.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/app/views/matchday/components/MatchdayCard.java b/src/main/java/app/views/matchday/components/MatchdayCard.java index 0d7ae2d..b106716 100644 --- a/src/main/java/app/views/matchday/components/MatchdayCard.java +++ b/src/main/java/app/views/matchday/components/MatchdayCard.java @@ -143,6 +143,9 @@ public class MatchdayCard extends Div implements ContentConfigurable { private void configureHeaderLabels(Matchday matchday) { int week = matchday.getSeason().getWeekOfFirstMatchday() + matchday.getNumber(); // TODO: figure out why you have to omit -1 on the server! + if (matchday.getNumber() > 13) { // TODO: Do this less dirty! + week += 1; + } int firstDay = matchday.getSeason().getFirstWeekdayOfMatchday(); int lastDay = matchday.getSeason().getLastWeekdayOfMatchday();