Skip to content

Commit

Permalink
fix postgres syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
lmaotrigine committed Jul 30, 2024
1 parent bfe176a commit a8c4fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/snipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ async def _snipe_clear(
if not await can_manage_snipe().predicate(ctx):
raise commands.MissingPermissions(['manage_messages'])
queries = """
DELETE FROM snipe_deletes WHERE guild_id = $1 AND {0}_id = $2 {1};
WITH _ AS (DELETE FROM snipe_deletes WHERE guild_id = $1 AND {0}_id = $2 {1})
DELETE FROM snipe_edits WHERE guild_id = $1 AND {0}_id = $2 {1};
"""
if isinstance(target, discord.TextChannel):
Expand Down

0 comments on commit a8c4fca

Please sign in to comment.