From 90b80cdc32cf3a6123e46f4205f5fa1cb7cf55b0 Mon Sep 17 00:00:00 2001 From: Klaas van Schelven Date: Thu, 17 Apr 2025 12:48:11 +0200 Subject: [PATCH] Parentheses fix botched in 6ff303858b7a --- bugsink/context_processors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bugsink/context_processors.py b/bugsink/context_processors.py index c55d059..ab0e8b5 100644 --- a/bugsink/context_processors.py +++ b/bugsink/context_processors.py @@ -50,8 +50,8 @@ def get_snappea_warnings(): # No tasks, no warnings. return [] - oldest_task_age = ( - int(timezone.now() - Task.objects.all().order_by('created_at').first().created_at).total_seconds()) + oldest_task_age = int( + (timezone.now() - Task.objects.all().order_by('created_at').first().created_at).total_seconds()) WARNING = SystemWarning((f"Snappea has {task_count} tasks in the queue, the oldest being {oldest_task_age}s old. " f"It may be either overwhelmed, blocked, not running, or misconfigured."), None)