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
|
return
|
||||||
else:
|
else:
|
||||||
cursor.execute("""SELECT userid, priority, added_at, task
|
cursor.execute("""SELECT userid, priority, added_at, task
|
||||||
FROM todo WHERE id = %s
|
FROM todo WHERE id = %s""", taskid)
|
||||||
AND active = 1""", taskid)
|
|
||||||
if cursor.rowcount == 0:
|
if cursor.rowcount == 0:
|
||||||
irc.error(msg, '%r is not a valid task id' % taskid)
|
irc.error(msg, '%r is not a valid task id' % taskid)
|
||||||
return
|
return
|
||||||
|
@ -79,6 +79,7 @@ if sqlite is not None:
|
|||||||
def testRemovetodo(self):
|
def testRemovetodo(self):
|
||||||
self.assertNotError('todo add do something else')
|
self.assertNotError('todo add do something else')
|
||||||
self.assertNotError('todo remove 1')
|
self.assertNotError('todo remove 1')
|
||||||
|
self.assertNotError('todo 1')
|
||||||
|
|
||||||
def testSearchtodo(self):
|
def testSearchtodo(self):
|
||||||
self.assertNotError('todo add task number one')
|
self.assertNotError('todo add task number one')
|
||||||
|
Loading…
Reference in New Issue
Block a user