Skip to content

Commit 5ce78a4

Browse files
committed
fix: stats command count result
1 parent a81ae95 commit 5ce78a4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cogs/admin_commands.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ async def stats(self, ctx):
2323
embed.add_field(name="Users", value=len(self.bot.users), inline=True)
2424
embed.add_field(
2525
name="Active Jobs",
26-
value=await session.execute(
26+
value=(await session.execute(
2727
select(func.count(Job.id)).where(Job.is_posted is True)
28-
),
28+
)).scalar(),
2929
inline=True,
3030
)
3131
embed.add_field(
3232
name="Subreddits",
33-
value=await session.execute(select(func.count(Subreddit.id))),
33+
value=(await session.execute(select(func.count(Subreddit.id)))).scalar(),
3434
inline=True,
3535
)
3636
embed.add_field(
3737
name="Keywords",
38-
value=await session.execute(select(func.count(Keyword.id))),
38+
value=(await session.execute(select(func.count(Keyword.id)))).scalar(),
3939
inline=True,
4040
)
4141
embed.set_footer(

0 commit comments

Comments
 (0)