still include today
Some checks failed
Deploy Backend / docker (ubuntu-latest) (push) Successful in 44s
Deploy Website / docker (ubuntu-latest) (push) Failing after 59s

This commit is contained in:
Lee 2024-10-21 14:18:26 +01:00
parent 0b92cec911
commit 42e0c3a7b2

@ -63,7 +63,7 @@ export class Player {
const statisticHistory = this.getStatisticHistory(); const statisticHistory = this.getStatisticHistory();
const history: Record<string, PlayerHistory> = {}; const history: Record<string, PlayerHistory> = {};
for (let i = 1; i <= days; i++) { for (let i = 0; i <= days; i++) {
const date = formatDateMinimal(getMidnightAlignedDate(getDaysAgoDate(i))); const date = formatDateMinimal(getMidnightAlignedDate(getDaysAgoDate(i)));
const playerHistory = statisticHistory[date]; const playerHistory = statisticHistory[date];
if (playerHistory !== undefined && Object.keys(playerHistory).length > 0) { if (playerHistory !== undefined && Object.keys(playerHistory).length > 0) {