Skip to content
This repository was archived by the owner on Jan 3, 2018. It is now read-only.

Commit 83a6230

Browse files
committed
now realy fix this bug!
1 parent f4010b7 commit 83a6230

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
' ({}.{} detected).'.format(*version))
1010
sys.exit(-1)
1111

12-
VERSION = '1.1.2'
12+
VERSION = '1.1.3'
1313

1414

1515
setup(name='tdo',

tdo/main.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,19 @@ def main(argv=sys.argv):
3939
if len(argv) < 3:
4040
displayhelp()
4141
# tdo add "itemname" [list]-- add a new item
42-
elif len(argv) < 4:
43-
# add to default list
44-
ret_val = todolist.add(todos, globalid, argv[2])
4542
else:
46-
# add to defined list
47-
ret_val = todolist.add(todos, globalid, argv[2], argv[3])
43+
if len(argv) < 4:
44+
# add to default list
45+
ret_val = todolist.add(todos, globalid, argv[2])
46+
else:
47+
# add to defined list
48+
ret_val = todolist.add(todos, globalid, argv[2], argv[3])
4849

49-
if ret_val[1]:
50-
# if there were changes, save them
51-
todolist.save(ret_val[0])
52-
settings['globalid'] = ret_val[2]
53-
todolist.savesettings(settings)
50+
if ret_val[1]:
51+
# if there were changes, save them
52+
todolist.save(ret_val[0])
53+
settings['globalid'] = ret_val[2]
54+
todolist.savesettings(settings)
5455
elif argv[1] == 'done':
5556
# tdo done x -- mark task no. x as done
5657
if len(argv) < 3:

0 commit comments

Comments
 (0)