Skip to contents

The function will overwrite the current events.json file and replace it with one generated from the supplied list of events

Usage

write_json_file(site, block, event_list, base_folder = json_file_base_folder())

Arguments

site

The site of the events

block

The block of the events

event_list

The list of events to write to the events.json file

base_folder

Included for testing reasons, the default value should otherwise be used