From 31dd10f5fce75a03e5056788a7b2d7c9119513bd Mon Sep 17 00:00:00 2001 From: Max Lang <17551908+just-max@users.noreply.github.com> Date: Fri, 3 Nov 2023 18:02:42 +0100 Subject: [PATCH] simple_commands.py: & instead of and in SQL query your welcome @fly-san --- owobot/cogs/simple_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owobot/cogs/simple_commands.py b/owobot/cogs/simple_commands.py index 588bb5e..03d0932 100644 --- a/owobot/cogs/simple_commands.py +++ b/owobot/cogs/simple_commands.py @@ -34,7 +34,7 @@ async def clear_links(urls=None): params = parse_qs(parsed_url.query) new_params = dict.copy(params) for key in params.keys(): - if EvilTrackingParameter.get_or_none(EvilTrackingParameter.url == domain and EvilTrackingParameter.tracking_parameter == key): + if EvilTrackingParameter.get_or_none(EvilTrackingParameter.url == domain & EvilTrackingParameter.tracking_parameter == key): new_params.pop(key) evil = True