Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tubular/scripts/retirement_partner_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,11 +488,12 @@ def _check_and_notify_about_expiring_files(config, enable_overdue_file_notificat
if enable_overdue_file_notification:
LOG('File {} is past its retention period, queuing overdue notification'.format(filename))
tag_string = ' '.join('+' + email for email in external_emails[partner])
overdue_deletion_date = (now + timedelta(days=warning_days)).strftime('%Y-%m-%d')
comment_content = DELETION_WARNING_MESSAGE_TEMPLATE.format(
tags=tag_string,
filename=filename,
days_until_deletion=warning_days,
Comment thread
ttak-apphelix marked this conversation as resolved.
deletion_date=deletion_date,
deletion_date=overdue_deletion_date,
)
Comment thread
ttak-apphelix marked this conversation as resolved.
pending_comments.append((file_id, comment_content))
LOG('Queuing overdue file notification for: {}'.format(filename))
Expand Down
Loading