aboutsummaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorTeddy Wing2018-02-04 06:38:18 +0100
committerTeddy Wing2018-02-04 06:38:18 +0100
commit3245850eaa8f290a1307730b391bea42b6cb6e76 (patch)
treef6b5507ee34e12b36f1f9bb240bc3d2513b8cb43 /.gitignore
parent84e7104af041307cd4c11237fcdf2898132c7cd9 (diff)
downloadharvester-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