mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
People should be able to get a todo regardless of its active/inactive status.
This commit is contained in:
parent
2ec97484f3
commit
be7a2921e2
@ -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
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user