-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from naved001/merge-csv
The script now accepts multiple CSV files which it then merges into one
- Loading branch information
Showing
2 changed files
with
36 additions
and
13 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 |
---|---|---|
|
@@ -28,11 +28,16 @@ [email protected],project foo,2023-09,2024-08,Internal | |
[email protected],project bar,2023-09,2024-08,Internal | ||
``` | ||
|
||
The script will gather the invoice month from the csv report and if it falls under the start and end date then those projects will be excluded. | ||
The script will gather the invoice month from the csv reports and if it falls under the start and end date then those projects will be excluded. | ||
In this example, `project foo` will not be billed for September 2023 and August 2024 and all the months in between for total of 1 year. | ||
|
||
The CSV report must have the headers `Manager (PI)'` and `Project - Allocation'`. | ||
|
||
``` | ||
usage: process_report.py [-h] --report-file REPORT_FILE --pi-file PI_FILE --projects-file PROJECTS_FILE --timed-projects-file TIMED_PROJECTS_FILE``` | ||
usage: process_report.py [-h] --pi-file PI_FILE --projects-file PROJECTS_FILE --timed-projects-file TIMED_PROJECTS_FILE [--output-file OUTPUT_FILE] | ||
csv_files [csv_files ...] | ||
process_report.py: error: the following arguments are required: csv_files, --pi-file, --projects-file, --timed-projects-file | ||
E.g. python process_report.py test1.csv test2.csv --pi-file pi.txt --projects-file projects.txt --timed-projects-file timed_projects.txt --output-file myfile.csv | ||
``` | ||
|
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