From bc96ac39c0aec5d40578d85f5f9714d366821c91 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 4 Feb 2018 04:52:15 +0100 Subject: submit_week_for_approval: Use most recent Friday Remove our test date and use the most recent Friday instead. --- harvester_submit_week_for_approval.py | 3 +-- 1 file changed, 1 insertion(+), 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, -- cgit v1.2.3