summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <sancn@live.com>2017-07-22 08:37:10 +0200
committerSanto Cariotti <sancn@live.com>2017-07-22 08:37:10 +0200
commitc06e1acaa9132510388a446bfa982d88903eb041 (patch)
tree29e6fc0a27e740d6ebc47f2f3e270c3e3b461b10
parent78fbe77fb8deb38805a3f7c729ad4e549dcb7035 (diff)
fixed msg
-rw-r--r--lib/commands.py2
1 files changed, 1 insertions, 1 deletions
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')