Skip to content

Commit

Permalink
fix: standup bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyvy-vi committed Jul 10, 2021
1 parent dd43e09 commit 5092082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cogs/standup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ async def on_reaction_add(self, reaction, user):
@commands.group(invoke_without_command=True, case_insensitive=True)
async def standup(self, ctx: Context, *, content: str):
"""Standup Commands Group. Stores tasks from standup messages"""
await self.create(ctx, content)
await self.create(ctx, tasks=content)

@standup.command()
async def create(self, ctx: Context, *, tasks: str):
"""Command for creating standups and storing tasks"""
record = await self.DB.find_one({"_id": str(ctx.author.id)})

tasks = formatted(tasks)
tasks = formatted(ctx, tasks)

if record:
data = record["data"] + [tasks]
Expand Down

0 comments on commit 5092082

Please sign in to comment.