From b1d4c709cb2793745e61d85c337514b9c6c85603 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Tue, 4 Oct 2022 23:58:08 +1100 Subject: Add gen_picked_data.py Add unit test Update READMEs and .gitignore --- backend/hist_data/picked/README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 backend/hist_data/picked/README.md (limited to 'backend/hist_data/picked/README.md') diff --git a/backend/hist_data/picked/README.md b/backend/hist_data/picked/README.md new file mode 100644 index 0000000..becbd24 --- /dev/null +++ b/backend/hist_data/picked/README.md @@ -0,0 +1,29 @@ +This directory holds data for additional events + +Files +===== +- events.json
+ Encodes an array of objects, each describing an event to add. + For example: + + [{ + "title": "COVID-19 Pandemic", + "start": 2458919, + "start_upper": null, + "end": null, + "end_upper": null, + "fmt": 2, + "ctg": "event", + "image": { + "file": "covid.jpg", + "url": "https://en.wikipedia.org/wiki/File:Covid-19_SP_-_UTI_V._Nova_Cachoeirinha.jpg", + "license": "cc-by-sa 4.0", + "artist": "Gustavo Basso", + "credit": "" + }, + "desc": "Global pandemic caused by the virus SARS-CoV-2", + "pop": 100 + }] + + The `image.file` field should name an image file in this directory. + Other fields correspond to those in the `events`, `images`, `descs`, and `pop` tables (see `../README.md`). -- cgit v1.2.3