openspending / datapackage-pipelines-fiscal

Fiscal Data Package extensions to Datapackage Pipelines
MIT License
3 stars 6 forks source link

[#1222] Split resources per fiscal year #2

Closed akariv closed 7 years ago

akariv commented 7 years ago

As the final step in the pipeline, before uploading the data to OpenSpending, we go over the datapackage looking for a column with osType == 'date:fiscal-year' (there can only be one). If there's no such column, the datapackage isn't modified, if there is, we go over the data and create one resource per year.

The pre-conditions for this processor are:

If either pre-condition isn't met, we return the datapackage unmodified.

Fixes openspending/openspending#1222

This pull request fixes # .

Changes proposed in this pull request:

-

-

akariv commented 7 years ago

/cc @vitorbaptista