
All checks were successful
Publish / build-and-push (push) Successful in 6m14s
Reasonably hacky, in that I introduce a facade to reuse the data format previously provided by the `csv` module, rather than using the `list[list[str]]` directly. Next I want to introduce something like Celery to continually refresh. Note that this will require changes to the deployment repo in order to provide the required secrets.
18 lines
946 B
Markdown
18 lines
946 B
Markdown
[](https://github.com/astral-sh/ruff)
|
|
|
|
This is a score tracker for an EDH ("Commander") group.
|
|
|
|
# Reading from a Google Sheet
|
|
|
|
Eventually, I'd want this application to be data-resilient enough to be the primary store of data. For now, though, I'm reading data in from a(n impressive!) Google Sheet maintained by my playgroup.
|
|
|
|
If you want to enable that syncing, you'll need to:
|
|
|
|
* Go to the [Google Cloud Console](https://console.cloud.google.com)
|
|
* If you haven't got one already, create a Project
|
|
* Go to "IAM and admin > Service Accounts"
|
|
* Create a new Service Account
|
|
* Note the resultant email address, and share the Google Sheet with it
|
|
|
|
If you haven't used the Google Sheets API in your Project, you may need to enable it, at `console.cloud.google.com/apis/library/sheets.googleapis.com?project=<your_project_slug>`
|