From ca22ec71da4c0386885b0997afab02151c9d4388 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 26 Oct 2015 21:29:00 +0200 Subject: Fix rule test --- servo/tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servo/tasks.py b/servo/tasks.py index 3323dd4..7f25069 100644 --- a/servo/tasks.py +++ b/servo/tasks.py @@ -39,9 +39,9 @@ def apply_rules(event): for r in rules: - if (r['event'] == event.action) and - (r['match'] == event.description) or - (r['event'] == 'create'): + if (r['event'] == event.action and + r['match'] == event.description or + r['event'] == 'create'): if isinstance(r['data'], dict): tpl_id = r['data']['template'] -- cgit v1.2.3