No description
Find a file
2020-05-13 17:48:14 +02:00
blokdata Add active field 2020-05-13 17:48:14 +02:00
.gitignore Minor cleanup 2020-05-13 15:42:14 +02:00
blokmap_to_sheet.py add conversion script 2020-05-13 17:16:21 +02:00
passenger_wsgi.py Fix deployment 2020-05-13 16:59:53 +02:00
README.md Add dev run script 2020-05-13 17:44:18 +02:00
requirements.txt Remove wsgi 2020-05-13 16:25:13 +02:00
run_dev.py Add dev run script 2020-05-13 17:44:18 +02:00

Blokdata

Create blokmap data from a Google sheet.

Installation

  1. Setup python
virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
  1. Setup config.ini as follows
[Google]

SHEET_ID = #FILLMEIN
RANGE_NAME = #METOO
  1. Request a Google service account

  2. Store the service account's key as service_account.json

  3. Give the service account's email (read) access to the sheet

  4. ./run_dev.py

TODO

  • Database caching: don't re-request google sheet data every time
  • Error handling: it shouldn't ever crash on user input