Skip to content

Commit

Permalink
updated annual report fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Oct 30, 2023
1 parent 7ada0c3 commit 93f1e51
Show file tree
Hide file tree
Showing 3 changed files with 272 additions and 30 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ fixtures : data/fixtures/pension_fund.json data/fixtures/annual_report.json
touch $@

data/fixtures/pension_fund.json :
python manage.py dumpdata pensions.PensionFund --indent 4 > $@
heroku run python manage.py dumpdata pensions.PensionFund --indent 4 -a $$(HEROKU_APP) > $@

data/fixtures/annual_report.json :
python manage.py dumpdata pensions.AnnualReport --indent 4 > $@
heroku run python manage.py dumpdata pensions.AnnualReport --indent 4 -a $$(HEROKU_APP) > $@

data/finished/pensions_%.csv : pensions_%.renamed.csv
# 1. Omit rows without an amount.
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ If you wish to make the data without importing it, specify the `data` target.
```bash
docker-compose run app make data -e
```

## Updating Pension Fund and Annual reports

1. TK use recipe from makefile to update fixtures from production
Loading

0 comments on commit 93f1e51

Please sign in to comment.