Compare commits

..

No commits in common. "main" and "dev" have entirely different histories.
main ... dev

3 changed files with 9 additions and 11 deletions

1
.gitignore vendored
View file

@ -6,7 +6,6 @@ config.yaml
# Environment
.env
.venv/
venv/
# Templates

View file

@ -82,14 +82,13 @@ def treat_issues():
.filter(project__name__in=action['projects'], status__name__in=action['status'], closed_on=None):
# Skip issue if start date + time_range is not yet reached
if hasattr(issue, 'start_date') and issue.start_date is not None \
if hasattr(issue, 'start_date') \
and date.today() < (issue.start_date + timedelta(days=+int(action['time_range']))):
logging.info(f'Ticket ID: {issue.id}, skipped because start date + time_range not yet reached')
continue
# Skip issue if due date has not yet passed
if (hasattr(issue, 'due_date') and issue.due_date is not None
and date.today() < (issue.due_date + timedelta(days=1))):
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

View file

@ -1,11 +1,11 @@
certifi==2023.7.22
certifi==2021.5.30
chardet==4.0.0
envyaml==1.8.210417
idna==3.7
Jinja2==3.1.3
idna==2.10
Jinja2==3.0.1
MarkupSafe==2.0.1
python-redmine==2.5.0
PyYAML==6.0.1
requests==2.31.0
urllib3==2.0.7
python-redmine==2.3.0
PyYAML==5.4.1
requests==2.25.1
urllib3==1.26.5
pytz~=2021.3