From be7a2921e29e25a979a4501b2866d2df4f81e3c6 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher <jemfinch@users.sourceforge.net> Date: Sun, 7 Dec 2003 01:19:00 +0000 Subject: [PATCH] People should be able to get a todo regardless of its active/inactive status. --- plugins/Todo.py | 3 +-- test/test_Todo.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Todo.py b/plugins/Todo.py index c11035f50..8a9edd775 100644 --- a/plugins/Todo.py +++ b/plugins/Todo.py @@ -152,8 +152,7 @@ class Todo(callbacks.Privmsg): return else: cursor.execute("""SELECT userid, priority, added_at, task - FROM todo WHERE id = %s - AND active = 1""", taskid) + FROM todo WHERE id = %s""", taskid) if cursor.rowcount == 0: irc.error(msg, '%r is not a valid task id' % taskid) return diff --git a/test/test_Todo.py b/test/test_Todo.py index f1c37c7fb..73653ea76 100644 --- a/test/test_Todo.py +++ b/test/test_Todo.py @@ -79,6 +79,7 @@ if sqlite is not None: def testRemovetodo(self): self.assertNotError('todo add do something else') self.assertNotError('todo remove 1') + self.assertNotError('todo 1') def testSearchtodo(self): self.assertNotError('todo add task number one')