Skip to content

Commit 07be7c4

Browse files
committed
Increment magic_number by one to fix checkins order
1 parent 41f7f6c commit 07be7c4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

layouts/shortcodes/checkin-schedule.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
var year = new Date(today.getFullYear(), 0, 1);
1818
var week = Math.floor(((today - year) / 86400000) / 7) + 1;
1919

20-
// This is a hack to not mess the checkins order when we change the number
21-
// of working groups. Adjust it when changing the number of working groups,
22-
// increment by one until the current order of the website matches.
23-
var magic_number = 0;
20+
// This is a hack to not mess the checkins order when we change the amount
21+
// of working groups.
22+
// Increment this number by one when you realize that after adding
23+
// working groups the website checkins order messes.
24+
var magic_number = 1;
2425

2526
// Add new working groups on the end of the list.
2627
// When adding/removing working groups adjust magic number to match the

0 commit comments

Comments
 (0)