Skip to content

Commit

Permalink
simple_commands.py: & instead of and in SQL query
Browse files Browse the repository at this point in the history
your welcome @fly-san
  • Loading branch information
just-max authored Nov 3, 2023
1 parent 351b845 commit 31dd10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion owobot/cogs/simple_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 31dd10f

Please sign in to comment.