Skip to content

Commit

Permalink
Core: Specific rule operator evaluation order enforced
Browse files Browse the repository at this point in the history
  • Loading branch information
omaralvarez committed Aug 23, 2016
1 parent 988539b commit 00d5f02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoremoveplus/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ def do_remove(self, *args, **kwargs):

specific_rules = self.get_torrent_rules(i, t, tracker_rules, label_rules)

#log.debug(specific_rules)
# Sort rules according to logical operators, AND is evaluated first
specific_rules.sort(key=lambda rule: rule[0])

remove_cond = False

Expand Down

0 comments on commit 00d5f02

Please sign in to comment.