mirror of
https://github.com/clarencechaan/ufc-cal.git
synced 2026-10-19 00:38:30 -07:00
Filter PPV events by checking for 'Fight Night' string (fix for White House event)
This commit is contained in:
1 parent
30efcfdb27
commit
c049ad061e
1 file changed
+3
-1
+3
-1
@@ -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")
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user