Filter PPV events by checking for 'Fight Night' string (fix for White House event)

This commit is contained in:
Clarence Chan committed 2026-03-10 21:21:40 -04:00
1 parent 30efcfdb27
commit c049ad061e
1 file changed
+3 -1
+3 -1
View File
@@ -24,7 +24,9 @@ async function createICS() {
if (eventsData) fs.writeFileSync("UFC.ics", eventsData);
// Filter for PPV events only
const ppvEvents = events.filter((event) => /UFC \d+/.test(event.name));
const ppvEvents = events.filter(
(event) => !event.name.includes("Fight Night")
);
const formattedPPVEvents = ppvEvents.map((event) =>
formatEventForCalendar(event, "UFC-PPV")
);