diff options
author | Joel Kronqvist <work.joelkronqvist@gmail.com> | 2022-11-18 18:27:40 +0200 |
---|---|---|
committer | Joel Kronqvist <work.joelkronqvist@gmail.com> | 2022-11-18 18:27:40 +0200 |
commit | d10272298acb4d6e07fb5b73dd7af06d653afd7b (patch) | |
tree | 7031c0edd2a64edbfb69958e099fcbcf929bbf36 /README.md | |
parent | 5665f993de41b82ab24c4a546d442b18f0bda4d3 (diff) | |
download | LYLLRuoka-d10272298acb4d6e07fb5b73dd7af06d653afd7b.tar.gz LYLLRuoka-d10272298acb4d6e07fb5b73dd7af06d653afd7b.zip |
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.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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', '<h2>Koeviikko</h2><br>22.11. - 30.11..<br>Kouluruokaa on tarjolla 10:45-11:30.'); +INSERT INTO exams VALUES ('2021-11-22', '2021-11-30', '<h2>Koeviikko</h2>22.11. - 30.11..<br>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 |