From 1abdc5b653d9d5c362a6fb4a73df2d08acdc642e Mon Sep 17 00:00:00 2001 From: Sophile Date: Sat, 28 Mar 2026 03:30:35 +0530 Subject: [PATCH] Convert queue size and count to string in monitor (#319) --- django_q/monitor_terminal.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django_q/monitor_terminal.py b/django_q/monitor_terminal.py index 7c18e6a..8b8f7a0 100644 --- a/django_q/monitor_terminal.py +++ b/django_q/monitor_terminal.py @@ -173,7 +173,7 @@ def monitor(run_once=False, broker=None): ) print( term.move(i, 3 * col_width) - + term.white_on_cyan(term.center(queue_size, width=col_width)) + + term.white_on_cyan(term.center(str(queue_size), width=col_width)) ) print( term.move(i, 4 * col_width) @@ -182,7 +182,7 @@ def monitor(run_once=False, broker=None): print( term.move(i, 5 * col_width) + term.white_on_cyan( - term.center(models.Success.objects.count(), width=col_width) + term.center(str(models.Success.objects.count()), width=col_width) ) ) print( @@ -192,7 +192,7 @@ def monitor(run_once=False, broker=None): print( term.move(i, 7 * col_width) + term.white_on_cyan( - term.center(models.Failure.objects.count(), width=col_width) + term.center(str(models.Failure.objects.count()), width=col_width) ) ) # for testing