Check event status rather than comparing times when deciding whether to update an event

This commit is contained in:
Clarence Chan committed 2023-10-29 12:53:31 -04:00
1 parent a2ec15795d
commit 6b3b55efdb
1 file changed
+1 -1
+1 -1
View File
@@ -96,7 +96,7 @@ async function updateEventsFile() {
// Update upcoming events
for (let i = 0; i < events.length; i++) {
// Skip past events
if (new Date(events[i].LiveEventDetail.StartTime) < Date.now()) continue;
if (events[i].LiveEventDetail.Status === "Final") continue;
console.log("Updating event", events[i].LiveEventDetail.EventId);
events[i] = fetchEvent(events[i].LiveEventDetail.EventId);