-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'grants-monthly' into staging
- Loading branch information
Showing
8 changed files
with
907 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env python3 | ||
"filter for grantsmonthly.csv" | ||
|
||
import csv | ||
import sys | ||
|
||
REMOVE_COLUMNS = [ | ||
'record_created', | ||
'record_modified', | ||
'user_modified', | ||
] | ||
|
||
def main(): | ||
reader = csv.DictReader(sys.stdin) | ||
outnames = [f for f in reader.fieldnames if f not in REMOVE_COLUMNS] | ||
writer = csv.DictWriter(sys.stdout, outnames) | ||
writer.writeheader() | ||
for row in reader: | ||
try: | ||
for rem in REMOVE_COLUMNS: | ||
del row[rem] | ||
writer.writerow(row) | ||
except ValueError: | ||
pass | ||
|
||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
New recombinant PD template for Grants (monthly). This template would be separate from | ||
the existing Grants template and is targeted only for the Staging environment. Major difference | ||
between the two templates are: | ||
* Data collection is done quarterly for Grants vs monthly for Grants (monthly) | ||
* The following fields exist in Grants but deprecated in Grants (monthly): | ||
- 3.9 research_organization_name | ||
- 3.14 federal_riding_name_en | ||
- 3.15 federal_riding_name_fr | ||
- 3.21 agreement_title_en | ||
- 3.22 agreement_title_fr | ||
- 3.25 foreign_currency_type | ||
- 3.26 foreign_currency_value | ||
- 3.29 coverage | ||
- 3.32 naics_identifier | ||
- 3.35 additional_information_en | ||
- 3.36 additional_information_fr | ||
* The following fields are new in the Grants (monthly) template: | ||
- 3.26 dem_intended_beneficiary | ||
- 3.27 other_dem_intended_beneficiary_description_en | ||
- 3.28 other_dem_intended_beneficiary_description_fr | ||
- 3.29 reason_amendment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters