mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
use saclars() for extend
This commit is contained in:
@@ -180,7 +180,7 @@ def dao_get_jobs_older_than_data_retention(notification_types):
|
|||||||
stmt = select(ServiceDataRetention).filter(
|
stmt = select(ServiceDataRetention).filter(
|
||||||
ServiceDataRetention.notification_type.in_(notification_types)
|
ServiceDataRetention.notification_type.in_(notification_types)
|
||||||
)
|
)
|
||||||
flexible_data_retention = db.session.execute(stmt).all()
|
flexible_data_retention = db.session.execute(stmt).scalars().all()
|
||||||
jobs = []
|
jobs = []
|
||||||
today = utc_now().date()
|
today = utc_now().date()
|
||||||
for f in flexible_data_retention:
|
for f in flexible_data_retention:
|
||||||
|
|||||||
Reference in New Issue
Block a user