mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-19 14:08:47 -04: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))
|
.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
|
# notify-api-1287, make default data retention 7 days, 23 hours
|
||||||
end_date = today - timedelta(days=7, hours=23)
|
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))
|
.order_by(desc(Job.created_at))
|
||||||
)
|
)
|
||||||
jobs.extend(db.session.execute(stmt).all())
|
jobs.extend(db.session.execute(stmt).scalars().all())
|
||||||
|
|
||||||
return jobs
|
return jobs
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user