feat: Migration v0 to v1.
Move 'tasklist' table to 'taskslist' for compatibility. Add migration sql script. Add 'taskslist_info' view. Add 'completed_in' to tasks.
This commit is contained in:
@@ -58,8 +58,8 @@ class TaskComponent(cmds.Component):
|
||||
await self.tasker.setup()
|
||||
# TODO: Add the IPC task update callback
|
||||
|
||||
async def get_profile_for(self, user):
|
||||
...
|
||||
async def get_profile_for(self, user: twitchio.PartialUser):
|
||||
return await self.bot.profiles.fetch_profile(user)
|
||||
|
||||
@cmds.command(name='now', aliases=['task', 'check', 'add'])
|
||||
async def cmd_now(self, ctx: cmds.Context, *, args: Optional[str]):
|
||||
@@ -72,7 +72,6 @@ class TaskComponent(cmds.Component):
|
||||
# TODO: Breaking change: check and add should change behaviour.
|
||||
# Check shows the status of the given task (does not allow creation)
|
||||
# Add adds the task(s) to the end of the plan.
|
||||
# TODOTODO: Support newline breaking on multi-tasks!! Although prefer semicolons
|
||||
|
||||
profileid = (await self.get_profile_for(ctx.author)).profileid
|
||||
|
||||
|
||||
Reference in New Issue
Block a user