diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-10-26 21:29:00 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-10-26 21:29:00 +0200 |
commit | ca22ec71da4c0386885b0997afab02151c9d4388 (patch) | |
tree | c9e77b172d8b7e8a6fda7ce05dbd118fed5ab345 | |
parent | 5673b00e6c9ed382f962a1201693e8c047cf8468 (diff) | |
download | Servo-ca22ec71da4c0386885b0997afab02151c9d4388.tar.gz Servo-ca22ec71da4c0386885b0997afab02151c9d4388.tar.bz2 Servo-ca22ec71da4c0386885b0997afab02151c9d4388.zip |
Fix rule test
-rw-r--r-- | servo/tasks.py | 6 |
1 files 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'] |