Skip to content

Commit

Permalink
fix in item update not displaying correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
gmn committed Jul 1, 2016
1 parent d471bc8 commit c936cd4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions todo
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,8 @@ def edit_item(title, args):
return

sys.stdout.write('\n--> CHANGED IN ITEM <--:\n')
for k in update:
if k not in item: # $in operator returns False if member val is 'falsey'
continue
p( '{:8} "{}"'.format(k, update[k]) )
for k, v in update.items():
p( '{:8} "{}"'.format(k, v) )

ans = input('replace? y/N > ')
if ans.lower().startswith('y'):
Expand Down

0 comments on commit c936cd4

Please sign in to comment.