From b27ef2a966ef8fc121c73107bd064abfb069b6c2 Mon Sep 17 00:00:00 2001 From: Lukas Date: Sun, 16 Jun 2024 21:26:16 -0400 Subject: [PATCH] Fixes bug with game ending for euro2024 (#747) --- store/Euro2024/Euro2024.json | 2 +- store/Euro2024/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/store/Euro2024/Euro2024.json b/store/Euro2024/Euro2024.json index 155676c7..60221c24 100644 --- a/store/Euro2024/Euro2024.json +++ b/store/Euro2024/Euro2024.json @@ -1,6 +1,6 @@ { "id": "Euro2024", - "version": "0.5.0", + "version": "0.5.1", "min_version": "1.20.0", "description": "This is for the 2024 European Championship.", "files": [ diff --git a/store/Euro2024/index.ts b/store/Euro2024/index.ts index 223878ff..0fb2fc26 100644 --- a/store/Euro2024/index.ts +++ b/store/Euro2024/index.ts @@ -102,7 +102,7 @@ const Main: dataGetter = async function () { const clubs = []; for (const game of game_data.data.items) { const gameStart = Date.parse(game.start_at) / 1000; - let gameEnd = nowTime; + let gameEnd = gameStart + 60 * 60 * 2.5; if (game.status !== GameStatus.Finished) { gameEnd = gameStart + 60 * 60 * 3; // Makes sure the game will still take 5 minutes to end