From bd34304e8ef47a17fd03a614a886e227d2f93bf8 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Mon, 4 Dec 2017 13:33:33 +0100 Subject: [PATCH] Include seminars --- events/calendar.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/events/calendar.js b/events/calendar.js index dd27204..72b657f 100644 --- a/events/calendar.js +++ b/events/calendar.js @@ -3,8 +3,11 @@ import '../elements/time'; function getEvents(number) { const now = new Date(); - const allEvents = window.c_base_events.concat(window.c_base_regulars); + const allEvents = window.c_base_events.concat(window.c_base_regulars, window.c_base_seminars); const current = allEvents.filter((event) => { + if (event.id === 45) { + return false; + } const start = new Date(event.start); if ((!event.data || event.allDay) && start.toDateString() !== now.toDateString()) { return false; @@ -19,6 +22,9 @@ function getEvents(number) { return true; }); const upcoming = allEvents.filter((event) => { + if (event.id === 45) { + return false; + } const start = new Date(event.start); if (start > now) { return true;