Update generate script, menu fixes, and add sendmail --now
README.md: Fix venv instructions
Template update
Please note that any code presented herein, or any information present on the Daily Buletin, does not represent the school in its official capacity. Information provided herein are provided on a best-effort basis by students who are otherwise unaffiliated with the school administration (and also have a very busy academic life).
Daily Bulletins are bulletin boards for students and staff at the Songjiang campus of YK Pao School, which are delivered by email every school day. They contain information such as itineraries notices, Daily Inspirations, exam schedules (if there are exam sessions ongoing), the daily menu, etc.
This repository contains the source code of the modern Daily Bulletin's build system. It does not contain the actual Daily Bulletins.
Just make a virtual environment and install from requirements.txt
.
python -m venv venv
. ./venv/bin/activate
pip3 install -r requirements.txt
config.example.ini
from the source directory to config.ini
in the
build directory and edit it.grant.py
and log in through your browser, if you have not provided
application consent via Microsoft Entra ID.Note that you are expected to be in the build directory when running.
generate
builds and sends tomorrow's bulletingenerate <YYYY-MM-DD>
builds and sends the bulletin for the specified day