From e82157fa9ea212ac1b322892c91b975b21e7bc88 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Fri, 21 Jul 2017 16:55:28 +0200 Subject: 🍺 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/commands.py b/lib/commands.py index f004d24..45789f1 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -52,7 +52,7 @@ class Commands(object): todolist = r.zrange('todo', 0, -1) if len(todolist) == 0: #if todo is empty - print('nessun todo in lista') + print('nessun todo in lista: goditi una Stout') else: for num, i in enumerate(todolist): #num = index, i = value print('| {} |\t {}'.format(num, i.decode('utf-8'))) @@ -96,7 +96,7 @@ class Commands(object): raise PersonalError(Colors.grey + 'del ' + Colors.red + 'accetta 1 parametro') if r.get('idTODO') is None: #idTODO is null, not 0 - print('nessun todo in lista') + print('nessun todo in lista: goditi una Stout') elif cmd[1] >= r.get('idTODO').decode('utf-8'): print('nessun todo con questo id') else: -- cgit v1.2.3-18-g5258