fix(tasklist): Fix some error path typos.
This commit is contained in:
@@ -764,7 +764,7 @@ class TasklistCog(LionCog):
|
|||||||
embed=error_embed(t(_p(
|
embed=error_embed(t(_p(
|
||||||
'cmd:tasks_remove_cmd|error:no_matching',
|
'cmd:tasks_remove_cmd|error:no_matching',
|
||||||
"No tasks on your tasklist match `{input}`"
|
"No tasks on your tasklist match `{input}`"
|
||||||
))).format(input=taskidstr)
|
)).format(input=taskidstr))
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -788,7 +788,7 @@ class TasklistCog(LionCog):
|
|||||||
embed=error_embed(t(_p(
|
embed=error_embed(t(_p(
|
||||||
'cmd:tasks_remove_cmd|error:no_matching',
|
'cmd:tasks_remove_cmd|error:no_matching',
|
||||||
"No tasks on your tasklist matching all the given conditions!"
|
"No tasks on your tasklist matching all the given conditions!"
|
||||||
))).format(input=taskidstr)
|
)).format(input=taskidstr))
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
taskids = [task.taskid for task in tasks]
|
taskids = [task.taskid for task in tasks]
|
||||||
@@ -859,7 +859,7 @@ class TasklistCog(LionCog):
|
|||||||
embed=error_embed(t(_p(
|
embed=error_embed(t(_p(
|
||||||
'cmd:tasks_remove_cmd|error:no_matching',
|
'cmd:tasks_remove_cmd|error:no_matching',
|
||||||
"No tasks on your tasklist match `{input}`"
|
"No tasks on your tasklist match `{input}`"
|
||||||
))).format(input=taskidstr)
|
)).format(input=taskidstr))
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -934,7 +934,7 @@ class TasklistCog(LionCog):
|
|||||||
embed=error_embed(t(_p(
|
embed=error_embed(t(_p(
|
||||||
'cmd:tasks_remove_cmd|error:no_matching',
|
'cmd:tasks_remove_cmd|error:no_matching',
|
||||||
"No tasks on your tasklist match `{input}`"
|
"No tasks on your tasklist match `{input}`"
|
||||||
))).format(input=taskidstr)
|
)).format(input=taskidstr))
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -942,7 +942,7 @@ class TasklistCog(LionCog):
|
|||||||
tasks = [task for task in tasks if task.completed_at is not None]
|
tasks = [task for task in tasks if task.completed_at is not None]
|
||||||
taskids = [task.taskid for task in tasks]
|
taskids = [task.taskid for task in tasks]
|
||||||
if taskids:
|
if taskids:
|
||||||
await tasklist.update_tasks(*taskids, cascade=cascade, completed_at=None)
|
await tasklist.update_tasks(*taskids, cascade=cascade or False, completed_at=None)
|
||||||
|
|
||||||
# Ack changes and summon tasklist
|
# Ack changes and summon tasklist
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
|
|||||||
Reference in New Issue
Block a user