From c06e1acaa9132510388a446bfa982d88903eb041 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sat, 22 Jul 2017 08:37:10 +0200 Subject: fixed msg --- lib/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/commands.py') diff --git a/lib/commands.py b/lib/commands.py index c61d698..e8cb171 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -95,7 +95,7 @@ class Commands(object): if len(cmd) > ListCommands.info['del'][1]: raise PersonalError(Colors.grey + 'del ' + Colors.red + 'accetta 1 parametro') - if r.get('idTODO') is None: #idTODO is null, not 0 + if r.get('idTODO') is None or r.get('idTODO') == 0: #idTODO is null or 0 print('nessun todo in lista: goditi una Stout') elif cmd[1] >= r.get('idTODO').decode('utf-8'): print('nessun todo con questo id') -- cgit v1.2.3-18-g5258