Browse Source

one week gap between matchday 13 and 14

master
GAM 4 years ago
parent
commit
daf35ea4b4
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/main/java/app/views/matchday/components/MatchdayCard.java

+ 3
- 0
src/main/java/app/views/matchday/components/MatchdayCard.java View File

@ -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();


Loading…
Cancel
Save