From 7f268165c58e11a40ab9e90780b0445aae40948a Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Mon, 15 Nov 2021 10:24:15 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20do=20not=20treat=20a=20ticket=20if?= =?UTF-8?q?=20its=20due=5Fdate=20has=20not=20yet=20passed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 4e14fd3..1459eb9 100644 --- a/main.py +++ b/main.py @@ -87,9 +87,9 @@ def treat_issues(): logging.info(f'Ticket ID: {issue.id}, skipped because start date + time_range not yet reached') continue - # Skip issue if due date is not yet reached - if hasattr(issue, 'due_date') and date.today() < issue.due_date: - logging.info(f'Ticket ID: {issue.id}, skipped because due date not yet reached') + # Skip issue if due date has not yet passed + if hasattr(issue, 'due_date') and date.today() < (issue.due_date + timedelta(days=1)): + logging.info(f'Ticket ID: {issue.id}, skipped because due date has not yet passed') continue # Skip issue if a no_bot_tag is found in the issue description or any of its journals