mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-28 05:21:54 -05:00
Move function to get archived email address value
This function will be used when archiving services too, so it has been renamed and moved to `app/utils.py`.
This commit is contained in:
@@ -126,3 +126,8 @@ def get_notification_table_to_use(service, notification_type, process_day, has_d
|
||||
days_of_retention += 1
|
||||
|
||||
return Notification if days_ago <= timedelta(days=days_of_retention) else NotificationHistory
|
||||
|
||||
|
||||
def get_archived_db_column_value(column):
|
||||
date = datetime.utcnow().strftime("%Y-%m-%d")
|
||||
return f'_archived_{date}_{column}'
|
||||
|
||||
Reference in New Issue
Block a user