mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 08:25:15 -05:00
fix test
This commit is contained in:
@@ -276,8 +276,9 @@ def get_recent_notifications_for_job(
|
|||||||
stmt = select(Notification).where(
|
stmt = select(Notification).where(
|
||||||
Notification.service_id == service_id,
|
Notification.service_id == service_id,
|
||||||
Notification.job_id == job_id,
|
Notification.job_id == job_id,
|
||||||
Notification.status
|
Notification.status.in_(
|
||||||
in [NotificationStatus.FAILED, NotificationStatus.DELIVERED],
|
[NotificationStatus.FAILED, NotificationStatus.DELIVERED]
|
||||||
|
),
|
||||||
)
|
)
|
||||||
stmt = _filter_query(stmt, filter_dict)
|
stmt = _filter_query(stmt, filter_dict)
|
||||||
stmt = stmt.order_by(desc(Notification.job_row_number))
|
stmt = stmt.order_by(desc(Notification.job_row_number))
|
||||||
|
|||||||
Reference in New Issue
Block a user