Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes bug with game ending for euro2024 #747

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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