style(): REFORMAT
This commit is contained in:
@@ -335,12 +335,9 @@ def _send_smtp(config: dict[str, Any], payload: dict[str, Any]) -> None:
|
||||
|
||||
|
||||
def _pending_notifications_for_flush() -> QuerySet[NotificationLog]:
|
||||
pending = (
|
||||
NotificationLog.objects.filter(
|
||||
pending = NotificationLog.objects.filter(
|
||||
status=NotificationStatus.PENDING,
|
||||
)
|
||||
.order_by("created_at")
|
||||
)
|
||||
).order_by("created_at")
|
||||
if not connection.features.has_select_for_update:
|
||||
return pending
|
||||
if connection.features.has_select_for_update_skip_locked:
|
||||
|
||||
Reference in New Issue
Block a user