diff options
| author | Teddy Wing | 2018-02-04 06:38:18 +0100 |
|---|---|---|
| committer | Teddy Wing | 2018-02-04 06:38:18 +0100 |
| commit | 3245850eaa8f290a1307730b391bea42b6cb6e76 (patch) | |
| tree | f6b5507ee34e12b36f1f9bb240bc3d2513b8cb43 /.gitignore | |
| parent | 84e7104af041307cd4c11237fcdf2898132c7cd9 (diff) | |
| download | harvester-submit-week-for-approval-3245850eaa8f290a1307730b391bea42b6cb6e76.tar.bz2 | |
Check that there are time entries for every day in the week
Before submitting the time sheet for approval (and before doing anything
with Selenium), ensure that there's at least one time entry logged for
each day in the week.
To do this, we query the Harvest API with newly-required account ID and
API token values. This gives us a bunch of time entries. We check them
to see if they fell in the last week. If all weekdays from the last week
have at least one time entry, then the rest of the program executes and
we run Selenium to submit the time sheet.
If any day had missing entries, an exception is raised and the program
exits.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions
