mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-10-02 17:44:37 -04:00
Update events.js
This commit is contained in:
parent
8d64783629
commit
7bb886f99d
@ -209,4 +209,18 @@ module.exports = [
|
|||||||
}
|
}
|
||||||
yield* weeks[2];
|
yield* weeks[2];
|
||||||
}), EventLevel.Week),
|
}), EventLevel.Week),
|
||||||
|
|
||||||
|
|
||||||
|
new Event('hate_crime_awareness_week', null, 10, function* (monthDays) {
|
||||||
|
let saturdays = 0;
|
||||||
|
for (let d of monthDays) {
|
||||||
|
if (d.dayOfWeek === 6) {
|
||||||
|
saturdays++;
|
||||||
|
}
|
||||||
|
if (saturdays === 2 || (saturdays === 3 && d.dayOfWeek === 6)) {
|
||||||
|
yield d;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, EventLevel.Week),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user