aboutsummaryrefslogtreecommitdiffstats
path: root/servo/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'servo/tasks.py')
-rw-r--r--servo/tasks.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/servo/tasks.py b/servo/tasks.py
index 64158c7..3323dd4 100644
--- a/servo/tasks.py
+++ b/servo/tasks.py
@@ -38,10 +38,10 @@ def apply_rules(event):
order = event.content_object
for r in rules:
- if r['event'] == 'create':
- event.description = r['event']
- if (r['event'] == event.action) and (r['match'] == event.description):
+ if (r['event'] == event.action) and
+ (r['match'] == event.description) or
+ (r['event'] == 'create'):
if isinstance(r['data'], dict):
tpl_id = r['data']['template']