From d10272298acb4d6e07fb5b73dd7af06d653afd7b Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Fri, 18 Nov 2022 18:27:40 +0200 Subject: Updated exam/vacation/etc notifications. Now they don't block the search field, which is more user friendly. They also appear only if the date searched for matches the notification, not if the current date matches the notification. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index d2f8d41..1dad685 100644 --- a/README.md +++ b/README.md @@ -134,14 +134,14 @@ If you need to troubleshoot the starting, you can find some logs in /tmp/slogs. # Adding cool data that isn't required for the server to run -## Notifying of unusual food shifts (eg. during exams) +## Notifying of unusual food shifts (eg. during exams or vacations) Currently the notifications have to be added manually to the MySQL database. Here's an example: ``` USE lyllruoka; -INSERT INTO exams VALUES ('2021-11-22', '2021-11-30', '

Koeviikko


22.11. - 30.11..
Kouluruokaa on tarjolla 10:45-11:30.'); +INSERT INTO exams VALUES ('2021-11-22', '2021-11-30', '

Koeviikko

22.11. - 30.11..
Kouluruokaa on tarjolla 10:45-11:30.'); ``` -The first value in the parenthesis is the start date of the notification, the second the end date of the notification and the third value is the message to display. HTML is supported. The message will override the food shift search. +The first value in the parenthesis is the start date of the notification, the second the end date of the notification and the third value is the message to display. HTML is supported. The message will override the food shift result. ## Updating the developer table -- cgit v1.2.3