1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +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 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: