aboutsummaryrefslogtreecommitdiffstats
path: root/harvester_submit_week_for_approval.py
diff options
context:
space:
mode:
authorTeddy Wing2018-02-04 04:52:15 +0100
committerTeddy Wing2018-02-04 04:52:15 +0100
commitbc96ac39c0aec5d40578d85f5f9714d366821c91 (patch)
treeb44d42bfd5ff7d8534ebaff0e680100bfe82810b /harvester_submit_week_for_approval.py
parent3ee6bbd1e5a2afdca3532e83880300d123bc9294 (diff)
downloadharvester-submit-week-for-approval-bc96ac39c0aec5d40578d85f5f9714d366821c91.tar.bz2
submit_week_for_approval: Use most recent Friday
Remove our test date and use the most recent Friday instead.
Diffstat (limited to 'harvester_submit_week_for_approval.py')
-rw-r--r--harvester_submit_week_for_approval.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/harvester_submit_week_for_approval.py b/harvester_submit_week_for_approval.py
index 5939af4..1731f73 100644
--- a/harvester_submit_week_for_approval.py
+++ b/harvester_submit_week_for_approval.py
@@ -36,8 +36,7 @@ def most_recent_friday():
return now - timedelta(weeks=1) + timedelta(days=friday - now.weekday())
def submit_week_for_approval(driver, wait, subdomain):
- # friday = most_recent_friday()
- friday = datetime(2018, 1, 15)
+ friday = most_recent_friday()
url = 'https://{subdomain}.harvestapp.com/time/week/{year}/{month}/{day}/'.format(
subdomain=subdomain,