Correct how to check if it's in a list
This commit is contained in:
parent
ef912ef7b8
commit
b11f6ea869
|
@ -180,7 +180,7 @@ FROM
|
||||||
WHERE
|
WHERE
|
||||||
booper=$1
|
booper=$1
|
||||||
AND
|
AND
|
||||||
boopee IN ($2)
|
boopee = ANY($2)
|
||||||
ORDER BY
|
ORDER BY
|
||||||
amount DESC
|
amount DESC
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
|
@ -219,13 +219,13 @@ FROM
|
||||||
WHERE
|
WHERE
|
||||||
booper=$1
|
booper=$1
|
||||||
AND
|
AND
|
||||||
boopee IN ($2)
|
boopee = ANY($2)
|
||||||
ORDER BY
|
ORDER BY
|
||||||
amount DESC
|
amount DESC
|
||||||
LIMIT 10
|
LIMIT 10
|
||||||
"""
|
"""
|
||||||
|
|
||||||
members = ", ".join(f"{m.id}" for m in ctx.guild.members)
|
members = [m.id for m in ctx.guild.members]
|
||||||
most = await self.bot.db.fetch(query, ctx.author.id, members)
|
most = await self.bot.db.fetch(query, ctx.author.id, members)
|
||||||
|
|
||||||
if len(most) != 0:
|
if len(most) != 0:
|
||||||
|
|
Loading…
Reference in a new issue