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]:
|
def _pending_notifications_for_flush() -> QuerySet[NotificationLog]:
|
||||||
pending = (
|
pending = NotificationLog.objects.filter(
|
||||||
NotificationLog.objects.filter(
|
|
||||||
status=NotificationStatus.PENDING,
|
status=NotificationStatus.PENDING,
|
||||||
)
|
).order_by("created_at")
|
||||||
.order_by("created_at")
|
|
||||||
)
|
|
||||||
if not connection.features.has_select_for_update:
|
if not connection.features.has_select_for_update:
|
||||||
return pending
|
return pending
|
||||||
if connection.features.has_select_for_update_skip_locked:
|
if connection.features.has_select_for_update_skip_locked:
|
||||||
|
|||||||
Reference in New Issue
Block a user