Parses line format copy-pasted from the Guild of Physics appendix
nominating the guild officials. This produces the jaokset.json, toimarit.json and kuvat.json files which are used by the Wordpress theme.
-
Copy the text from the appendix. Example can be found from 2/2023 meeting appendixes of the Guild board with the name "Liite 2: Nimitettävät toimihenkilöt vuodelle 2023"
The text looks something as followsTAPAHTUMAJAOS DJ Sun Mutsis N-VASTAAVA Sun Isäs Joku Muu IHMEJUTTUJAOS KILLANISUKKI Diktaattori Diktaattorinen OPINTOJAOS ÄNNÄ Ännä Ännäinen TUTORITYYPPI Tutori TutorinenSave this as
volunteers.txtnext to thetoimarit.pyfile. -
Run the script with
python3 toimarit.py -
Copy created
jaokset.json,toimarit.jsonandkuvat.jsonfiles to the Wordpress installation underwp-content/uploads/toimarit/[YEAR]folder. -
Create
kuvatfolder in thetoimarit/[YEAR]folder and copy the images of the officials there (the images should be named as the official's name in thekuvat.jsonfile with spaces replaced by dashes-)