Skip to content

Commit

Permalink
Fixes bug with game ending for euro2024 (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasdotcom authored Jun 17, 2024
1 parent 4b296fe commit b27ef2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion store/Euro2024/Euro2024.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion store/Euro2024/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b27ef2a

Please sign in to comment.