mirror of
https://github.com/danbulant/ssps-bot
synced 2026-06-18 22:01:06 +00:00
I hate sobota
This commit is contained in:
parent
1d7e801321
commit
3c3c2ee3c5
1 changed files with 1 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ module.exports = class rozvrh extends commando.Command {
|
|||
if(date.weekday === 0 || date.weekday === 7) {
|
||||
date = date.plus({ days: date.weekday === 0 ? 2 : 1 });
|
||||
}
|
||||
if(date.weekday > 5) date = date.plus({ days: 8 - date.weekday});
|
||||
const schedule = await Timetable.findAll({
|
||||
where: {
|
||||
day: date.weekday - 1,
|
||||
|
|
|
|||
Loading…
Reference in a new issue