Include recent past events

This commit is contained in:
Clarence Chan committed 2023-09-13 21:12:33 -04:00
1 parent 0c6389bc35
commit 2a43d8d4cd
1 file changed
+1 -3
+1 -3
View File
@@ -7,9 +7,7 @@ async function getEventLinks() {
const response = await fetch(url);
const text = await response.text();
const root = parse(text);
let links = root.querySelectorAll(
"#events-list-upcoming h3.c-card-event--result__headline"
);
let links = root.querySelectorAll(".c-card-event--result__headline");
links = links.map(
(html) => "https://www.ufc.com" + html.firstChild.getAttribute("href")
);