Include seminars
This commit is contained in:
parent
5ce23bb2a5
commit
bd34304e8e
1 changed files with 7 additions and 1 deletions
|
@ -3,8 +3,11 @@ import '../elements/time';
|
||||||
|
|
||||||
function getEvents(number) {
|
function getEvents(number) {
|
||||||
const now = new Date();
|
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) => {
|
const current = allEvents.filter((event) => {
|
||||||
|
if (event.id === 45) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
const start = new Date(event.start);
|
const start = new Date(event.start);
|
||||||
if ((!event.data || event.allDay) && start.toDateString() !== now.toDateString()) {
|
if ((!event.data || event.allDay) && start.toDateString() !== now.toDateString()) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -19,6 +22,9 @@ function getEvents(number) {
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
const upcoming = allEvents.filter((event) => {
|
const upcoming = allEvents.filter((event) => {
|
||||||
|
if (event.id === 45) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
const start = new Date(event.start);
|
const start = new Date(event.start);
|
||||||
if (start > now) {
|
if (start > now) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue