fix(aurora): fixed an sql syntax error

This commit is contained in:
Seaswimmer 2024-06-05 01:37:41 -04:00
parent afac274978
commit e9a64e5a39
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -1498,7 +1498,7 @@ class Aurora(commands.Cog):
if not await self.bot.cog_disabled_in_guild(self, guild): if not await self.bot.cog_disabled_in_guild(self, guild):
time_per_guild = time.time() time_per_guild = time.time()
tempban_query = f"SELECT * FROM moderation_{guild.id} WHERE end_timestamp IS NOT NULL 0 AND end_timestamp <= ? AND moderation_type = 'TEMPBAN' AND expired = 0" tempban_query = f"SELECT * FROM moderation_{guild.id} WHERE end_timestamp IS NOT NULL AND end_timestamp <= ? AND moderation_type = 'TEMPBAN' AND expired = 0"
tempbans = await Moderation.execute(bot=self.bot, guild_id=guild.id, query=tempban_query, parameters=(time.time(),)) tempbans = await Moderation.execute(bot=self.bot, guild_id=guild.id, query=tempban_query, parameters=(time.time(),))
unban_num = 0 unban_num = 0