fix(aurora): fixed an sql syntax error
This commit is contained in:
parent
afac274978
commit
e9a64e5a39
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue