Repository navigation
Can I add an extra lesson on a day the timetable leaves empty, like a working Saturday? #555
|
A government decree made one Saturday a working day, and our school will teach Friday's lessons on it. Our weekly timetable has nothing on Saturdays. Can I put lessons on that one date without changing every Saturday? |
Replies: 1 comment
|
You cannot add the lesson from the bot or the app. The server can, but only through its API.
Mark the weekday that decree frees up as «🏖 Каникулы / выходной». More: https://github.com/lumenpearson/lessons/blob/main/docs/api.md#put-apiv1overrides |
You cannot add the lesson from the bot or the app. The server can, but only through its API.
Bot: «🔄 Замены» offers only lessons a day already has; an empty Saturday gets «В этот день уроков нет — заменять нечего.» Editing Saturday in «🧩 Расписание» changes every Saturday.
App: the app enters no substitutions. The README now states this too (#466, fixed in #539).
API: a replacement with a subject, at a number the timetable leaves empty, adds a lesson to that date. Send one request per lesson, using an editor's device token. Get a token by pressing «📱 Подключить телефон» in the bot and redeeming the code with
POST /api/v1/join. The device token is a credential; never post it.