mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-30 12:23:04 -05:00
use saclars() for extend
This commit is contained in:
@@ -196,7 +196,7 @@ def dao_get_jobs_older_than_data_retention(notification_types):
|
||||
)
|
||||
.order_by(desc(Job.created_at))
|
||||
)
|
||||
jobs.extend(db.session.execute(stmt).all())
|
||||
jobs.extend(db.session.execute(stmt).scalars().all())
|
||||
|
||||
# notify-api-1287, make default data retention 7 days, 23 hours
|
||||
end_date = today - timedelta(days=7, hours=23)
|
||||
@@ -217,7 +217,7 @@ def dao_get_jobs_older_than_data_retention(notification_types):
|
||||
)
|
||||
.order_by(desc(Job.created_at))
|
||||
)
|
||||
jobs.extend(db.session.execute(stmt).all())
|
||||
jobs.extend(db.session.execute(stmt).scalars().all())
|
||||
|
||||
return jobs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user