mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-19 05:58:53 -04:00
pytest fixes
This commit is contained in:
@@ -75,7 +75,9 @@ def dao_get_jobs_by_service_id(
|
||||
stmt = (
|
||||
select(Job)
|
||||
.where(*query_filter)
|
||||
.order_by(func.coalesce(Job.processing_started, Job.created_at).desc())
|
||||
.order_by(
|
||||
func.coalesce(Job.processing_started, Job.created_at).desc(), Job.id.desc()
|
||||
)
|
||||
.limit(page_size)
|
||||
.offset(offset)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user