Skip to content

Scripts and tools for parsing Fyysikkokilta wp-theme volunteer JSON from Google Sheets copied line format

Notifications You must be signed in to change notification settings

fyysikkokilta/toimarit-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Fyysikkokilta Guild official parser

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.

Usage

  1. 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 follows

    TAPAHTUMAJAOS
    DJ
    Sun Mutsis
    
    N-VASTAAVA
    Sun Isäs
    Joku Muu
    
    IHMEJUTTUJAOS
    KILLANISUKKI
    Diktaattori Diktaattorinen
    
    OPINTOJAOS
    ÄNNÄ
    Ännä Ännäinen
    
    TUTORITYYPPI
    Tutori Tutorinen
    

    Save this as volunteers.txt next to the toimarit.py file.

  2. Run the script with python3 toimarit.py

  3. Copy created jaokset.json, toimarit.json and kuvat.json files to the Wordpress installation under wp-content/uploads/toimarit/[YEAR] folder.

  4. Create kuvat folder in the toimarit/[YEAR] folder and copy the images of the officials there (the images should be named as the official's name in the kuvat.json file with spaces replaced by dashes -)

About

Scripts and tools for parsing Fyysikkokilta wp-theme volunteer JSON from Google Sheets copied line format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages