From cba7b60fcc160cb09a35330567bb1a3df587dafe Mon Sep 17 00:00:00 2001 From: Ilan Steemers Date: Sun, 6 Sep 2015 19:58:04 +0200 Subject: [PATCH] fixing term clear --- django_q/monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django_q/monitor.py b/django_q/monitor.py index 9b35614..3a0dcec 100644 --- a/django_q/monitor.py +++ b/django_q/monitor.py @@ -28,7 +28,7 @@ def monitor(run_once=False, broker=None): col_width = int(term.width / 8) # In case of resize if col_width != start_width: - print(term.clear) + print(term.clear()) start_width = col_width print(term.move(0, 0) + term.black_on_green(term.center(_('Host'), width=col_width - 1))) print(term.move(0, 1 * col_width) + term.black_on_green(term.center(_('Id'), width=col_width - 1))) @@ -140,7 +140,7 @@ def info(broker=None): else: tasks_per = tasks_per_day # print to terminal - term.clear_eos() + print(term.clear_eos()) col_width = int(term.width / 6) print(term.black_on_green(term.center(_('-- {} summary --').format(Conf.PREFIX)))) print(term.cyan(_('Clusters')) +