mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-23 15:56:45 -04:00
Fix codestyle
This commit is contained in:
@@ -390,7 +390,6 @@ def delete_notifications_created_more_than_a_week_ago_by_type(notification_type)
|
|||||||
notification_sender_mapping_table.notification_id.in_(subq)
|
notification_sender_mapping_table.notification_id.in_(subq)
|
||||||
).delete(synchronize_session='fetch')
|
).delete(synchronize_session='fetch')
|
||||||
|
|
||||||
|
|
||||||
deleted = db.session.query(Notification).filter(
|
deleted = db.session.query(Notification).filter(
|
||||||
func.date(Notification.created_at) < seven_days_ago,
|
func.date(Notification.created_at) < seven_days_ago,
|
||||||
Notification.notification_type == notification_type,
|
Notification.notification_type == notification_type,
|
||||||
|
|||||||
Reference in New Issue
Block a user