Skip to content

Commit

Permalink
Merge pull request #95 from owo-uwu-nyaa/fix-silly-precedence-mistake
Browse files Browse the repository at this point in the history
simple_commands.py: blehhhh
  • Loading branch information
just-max committed Nov 3, 2023
2 parents 8b4807f + a2fff75 commit 36166b3
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 & 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 36166b3

Please sign in to comment.