Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Auto JSON API generation & run specific generation code with args #564

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

otterbotter
Copy link
Contributor

@otterbotter otterbotter commented May 8, 2019

https://trello.com/c/DA1Xr1A0/60-automate-json-api-endpoint-templates

This PR adds the following:

  • Args to only generate specific sections of data (preview pages, treemaps etc.)
  • Generate JSON API files for year-specific cases (preview pages, provincial/national budget phases etc.)
  • Delete old JSON API financial years that are no longer in the current scope
  • Fix jekyll syntax warnings during compilation

To generate specific sections only, use the following syntax:
python generate/from_dynamic.py --only {SECTION} {SECTION}
e.g. --only json_apis or --only json_apis treemaps etc.

For a list of available sections, use --help

generate/from_dynamic.py Outdated Show resolved Hide resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants