1
0
Fork 0
mirror of synced 2024-05-07 06:02:24 +12:00

Correct how to check if it's in a list

This commit is contained in:
phxntxm 2019-01-27 21:23:52 -06:00
parent ef912ef7b8
commit b11f6ea869

View file

@ -180,7 +180,7 @@ FROM
WHERE
booper=$1
AND
boopee IN ($2)
boopee = ANY($2)
ORDER BY
amount DESC
LIMIT 1
@ -219,13 +219,13 @@ FROM
WHERE
booper=$1
AND
boopee IN ($2)
boopee = ANY($2)
ORDER BY
amount DESC
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)
if len(most) != 0: